Webdings Font Does Not Work!

Webdings Font Does Not Work!

Forum member · Apr 26, 2006
I am attempting to add the font webdings to my pdf, but when it generates it only shows the rectangular placeholders. I have tried using the Unicode value, but to no avail. The code I am using is below: Dim TTFWebdingsFont As TrueTypeFont = New TrueTypeFont("C:\WINDOWS\Fonts\webdings.ttf") Dim MyLabel As Label MyLabel = New Label("Å", 0, 10, 150, 80, TTFWebdingsFont, 12, TextAlign.Left) MyDocument.Pages.Item(0).Elements.Add(MyLabel) MyLabel = New Label("\u00C5", 0, 20, 150, 80, TTFWebdingsFont, 12, TextAlign.Left) MyDocument.Pages.Item(0).Elements.Add(MyLabel) This font is absolutely neccessary for this project. I am using the licensed version of DynamicPDF Generator Developer Edition 3.0.3.0 (Build 51220)

Re: Webdings Font Does Not Work!

Support · Apr 26, 2006
Keep in mind that the characters for Webdings font are located in the Unicode Private Use area. You will need to use a Unicode value in the defined range of Unicode values for that font. The following are the ranges of Unicode values for characters located in the Private Use area for the Webding Font: uF020–uF0FF In order to access the characters within the font you will need to reference them using the correct Unicode values. Thanks, ceTe Software Support Team

Re: Webdings Font Does Not Work!

Forum member · Apr 27, 2006
Even when using a Unicode value in the defined range of Unicode values for the webdings font as below: Dim TTFWebdingsFont As TrueTypeFont = New TrueTypeFont("C:\WINDOWS\Fonts\webdings.ttf") Dim MyLabel As Label MyLabel = New Label("\uF0C5", 0, 20, 150, 80, TTFWebdingsFont, 12, TextAlign.Left) MyDocument.Pages.Item(0).Elements.Add(MyLabel I still just get the rectangular placeholders.

Re: Webdings Font Does Not Work!

Support · Apr 27, 2006
Hello, Since you are using VB.NET you will need to convert the Hex value to decimal value and pass it to the ChrW() function. For e.g. MyLabel = New Label(ChrW(61637), 0, 20, 150, 80, TTFWebdingsFont, 12, TextAlign.Left) Thanks, ceTe Software Support Team