PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jul 20, 2024 1:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Aug 25, 2011 10:46 am 
Offline

Joined: Tue Aug 23, 2011 12:59 pm
Posts: 8
Hi,

XFont font = new XFont("Calibri", 14, XFontStyle.Bold);
Exception:
"Cannot get a matching glyph typeface for font 'Calibri'."

I tried and want Arial Unicode MS or Arial => unfornately get the same exception.
But . I tried "Verdana" works.

Why ?

Thanks,
Daniel Shitrit


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 25, 2011 11:19 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!

It won't help you to know that Calibri works on my computer.
It doesn't help me to know that Calibri doesn't work on your computer.

See also:
viewtopic.php?p=2094#p2094

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 25, 2011 2:11 pm 
Offline

Joined: Tue Aug 23, 2011 12:59 pm
Posts: 8
Hi,

I used MigraDoc Foundation for WPF build using 3.1 last
version of MigraDoc Foundation.

Is what you want ?
What do I miss ?

Thanks,
Daniel Shitrit


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 25, 2011 3:34 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Which Windows version? Which .NET version?
Are the four glyphs of Calibri (regular, bold, italic, bold italic) with True Type outlines installed?
Your sample code will require the Bold glyph, installing the Regular glyph won't be enough.

Calibri should work with version 1.31 of MigraDoc (and does work on our computers).

The 1.31 version should compile without code changes (I don't know what you changed to make it compile).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Sun Aug 28, 2011 6:28 am 
Offline

Joined: Tue Aug 23, 2011 12:59 pm
Posts: 8
Which Windows version? XP SP1
Which .NET version? - 3.5

Are the four glyphs of Calibri (regular, bold, italic, bold italic) with True Type outlines installed?
Your sample code will require the Bold glyph, installing the Regular glyph won't be enough.
Calibri should work with version 1.31 of MigraDoc (and does work on our computers).
I will check and let you know.


The 1.31 version should compile without code changes (I don't know what you changed to make it compile).
==========================
I open a new solution and added:
MigraDoc.DocumentObjectModel
MigraDoc.Rendering
MigraDoc.RtfRendering

PdfSharp
PdfSharp.Chartin

And there were some problems of projects references and missing using statements.
Moreover, I converted all to version 3.5 since part were in 3 and some in 3.


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 30, 2011 7:00 am 
Offline

Joined: Tue Aug 23, 2011 12:59 pm
Posts: 8
I used Arial and it's works -:)


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 39 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