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

Error during XFont initialization
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1271
Page 1 of 1

Author:  VMAtm [ Tue Jul 20, 2010 1:38 pm ]
Post subject:  Error during XFont initialization

Hi, I have some problem with XFont class.
Sometimes then I create a XFont (Calibri, Size 10), it fails to read FontData:
at PdfSharp.Fonts.OpenType.FontData.Read()
at PdfSharp.Fonts.OpenType.FontData..ctor(XFont font, XPdfFontOptions options)
at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font, XPdfFontOptions options)
at PdfSharp.Fonts.FontDescriptorStock.CreateDescriptor(XFont font)
at PdfSharp.Drawing.XFont.get_Metrics()
at PdfSharp.Drawing.XFont.Initialize()
at PdfSharp.Drawing.XFont..ctor(String familyName, Double emSize, XFontStyle style, XPdfFontOptions pdfOptions)

But after reboot it start to work. May be there some deadlock or something. How can I handle this?

Author:  Thomas Hoevel [ Tue Jul 20, 2010 1:48 pm ]
Post subject:  Re: Error during XFont initialization

Hi!
You cropped the exception text and I won't make wild guesses based on the available information.

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