PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Cannot get a matching glyph typeface for font ...
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1756
Page 1 of 1

Author:  danies8 [ Thu Aug 25, 2011 10:46 am ]
Post subject:  Cannot get a matching glyph typeface for font ...

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

Author:  Thomas Hoevel [ Thu Aug 25, 2011 11:19 am ]
Post subject:  Re: Cannot get a matching glyph typeface for font ...

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

Author:  danies8 [ Thu Aug 25, 2011 2:11 pm ]
Post subject:  Re: Cannot get a matching glyph typeface for font ...

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

Author:  Thomas Hoevel [ Thu Aug 25, 2011 3:34 pm ]
Post subject:  Re: Cannot get a matching glyph typeface for font ...

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).

Author:  danies8 [ Sun Aug 28, 2011 6:28 am ]
Post subject:  Re: Cannot get a matching glyph typeface for font ...

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.

Author:  danies8 [ Tue Aug 30, 2011 7:00 am ]
Post subject:  Re: Cannot get a matching glyph typeface for font ...

I used Arial and it's works -:)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/