Subject: Using Arial font with unicode letters Date: 2014-08-06 14:01:36 From: Yaakov Ellis Source: using-arial-font-unicode-letters ----------------------------------------------------------------------I am initializing a PdfFont as follows:
FontFamily fontArial = new FontFamily("Arial");This works fine for english text. However, when I enter unicode text and attempt to measure or draw a string using this font, I get the following exception:[PdfException: Couldn't find information about the character. Unicode is not supported by this font.] ComponentPro.Pdf.Graphics.Fonts.TrueTypeFont.ComponentPro.Pdf.Graphics.ITrueTypeFont.GetCharWidth(Char charCode) +159 ComponentPro.Pdf.Graphics.Fonts.TrueTypeFont.ComponentPro.Pdf.Graphics.ITrueTypeFont.GetLineWidth(String line) +73 ComponentPro.Pdf.Graphics.PdfTrueTypeFont.GetLineWidth(String line, PdfStringFormat format) +136 ComponentPro.Pdf.Graphics.PdfStringLayouter.LayoutLine(String line, Single lineIndent) +209 ComponentPro.Pdf.Graphics.PdfStringLayouter.DoLayout() +126 ComponentPro.Pdf.Graphics.PdfFont.MeasureString(String text, SizeF layoutArea, PdfStringFormat format, Int32& charactersFitted, Int32& linesFilled) +76 ComponentPro.Pdf.Graphics.PdfFont.MeasureString(String text, Single width, PdfStringFormat format, Int32& charactersFitted, Int32& linesFilled) +60How can I successfully use Arial (a very standard font) with unicode text?---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index