PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Wed Oct 01, 2025 10:42 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Some fonts doesn't work
PostPosted: Thu Aug 09, 2012 6:58 pm 
Offline

Joined: Thu Aug 09, 2012 6:38 pm
Posts: 1
Hi,

I tried to write a text in a special font installed at my pc but every time it does write in Arial. Than I tested some other installed fonts and I had the same problems with many other fonts. I only tested True Type and Open Type fonts.

This is the way I'm loading fonts ...
Code:
XFont font_bold_header = new XFont("Segoe UI", 50, XFontStyle.Bold);


For example Calibri doesn't work, Times New Roman works fine, Segoe UI doesn't work (<-- but I need this very very strongly)

What I'm doing wrong?


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 13, 2012 8:11 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
maddinel wrote:
What I'm doing wrong?

Nothing wrong with the line of code you are showing.

Segoe UI works with our documents.

See here:
viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 416 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group