Wingdings Font Doesn't Display

Wingdings Font Doesn't Display

Forum member · Mar 6, 2006
I have followed the instructions for adding a "TrueTypeFont" for fonts that are not in the DynamicPDF core font classes. It works with adding most fonts. Where it doesn't work is when I add any of the three Wingding fonts. I just get the rectangle placeholders instead. This is the code I've used: ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document(); // Create a TrueType font class. TrueTypeFont TTFWingDing3 = new TrueTypeFont(@"C:\WINDOWS\Fonts\WINGDNG3.TTF"); document.Pages[0].Elements.Add( new TextArea( "Wingding 3 Text", 0, 0, 200, 12, TTFWingDing3, 12 ) ); I am using our licensed copy of Build 50611 for development. I uninstalled it and downloaded and installed the demo version of Build 51125 to see if it was something fixed in a recent build, but I saw the same rectangle placeholders. Wingdings is a very important font to have for our implementation and I am disappointed to see that I can't use it when I originally said I could build our reports using this software. Please help. Thank you.

Re: Wingdings Font Doesn't Display

Support · Mar 6, 2006
Hello, The characters for Wingdng3 font are located in the Unicode Private Use area. You will need to use the Unicode values to specify the characters in this font because this font does not map the characters to the ASCII numeric characters. Following are the ranges of Unicode values for characters located in the Private Use area for each font you were having problems with: wingdng3.ttf: uF020-uF0F0 In order to access the characters within the font you will need to reference them using their Unicode values. Thanks, ceTe Software Support Team

Re: Wingdings Font Doesn't Display

Forum member · Mar 7, 2006
Hooray! It works! Thank you, thank you for such a quick response. I did encounter a problem, maybe a bug, but it's no show stopper as I don’t need these few characters, but thought you would like to know. I will go into detail how I did this incase others stumble upon this thread: I tried out the following code: // Create a document and set it's properties ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document(); document.Creator = "AllPageElements.aspx"; document.Author = "Your Name"; document.Title = "All Page Elements"; // Add the top level outline to the document Outline parentOutline = document.Outlines.Add( "Top Level Outline", new XYDestination( 1, 0, 0 ) ); parentOutline.Color = new WebColor( "0000FF" ); parentOutline.Style = TextStyle.Bold; // Add pages to the document AddPageElementPage( document, parentOutline ); // Testing out WingDing Fonts TrueTypeFont TTFWingDing1 = new TrueTypeFont(@"C:\WINDOWS\Fonts\WINGDING.TTF"); TrueTypeFont TTFWingDing2 = new TrueTypeFont(@"C:\WINDOWS\Fonts\WINGDNG2.TTF"); TrueTypeFont TTFWingDing3 = new TrueTypeFont(@"C:\WINDOWS\Fonts\WINGDNG3.TTF"); document.Pages[0].Elements.Add( new TextArea( "\uF020"+"\uF021"+"\uF0FD"+"\uF0FE"+"\uF0FF"+"\uF0FE", 0, 20, 300, 18, TTFWingDing1, 12 ) ); document.Pages[0].Elements.Add( new TextArea( "\uF020"+"\uF021"+"\uF0F7"+"\uF0F8"+"\uF0F9"+"\uF0F8", 0, 45, 300, 18, TTFWingDing2, 12 ) ); document.Pages[0].Elements.Add( new TextArea( "\uF020"+"\uF021"+"\uF0EE"+"\uF0EF"+"\uF0F0"+"\uF0EF", 0, 70, 300, 18, TTFWingDing3, 12 ) ); // Outputs the document to the hard drive document.Draw("C:\\Temp\\DynamicPDF Files\\Sample WingDing.pdf"); Open up Microsoft Word. Click on "Insert", then "Symbol..." and the "Symbol" mini-window appears. Change the font to "Wingdings 3". Then change the "from:" dropdown from "Symbol (decimal)" to "Symbol (hex)". In the "Character code" textbox is the number "0020" and its image is blank. If you scroll all the way down and repeat for the other WingDing fonts you can get an idea of where the Unicode range ends. As you can see I tried the first two characters in the range (the first one is always a space) and they appeared fine. Then I tried the last three characters in the range according to the Insert->Symbol mini-window and I was surprised to see that the last character does not appear for Wingding or Wingding2, but it did for Wingding3. I thought that maybe the TextArea I was using was somehow clipping the last character, so I added the second to the last character again to the end of the string and it appeared, but oddly the last character in the range was "blank", which means it is defined, otherwise I would see a rectangular placeholder box. Maybe it's just my machine or set up. I don't need those two characters, but I just thought I should point it out. Thanks for your help and promptness! - M

Re: Wingdings Font Doesn't Display

Support · Mar 15, 2006
Hello, The issue has been resolved and the fix for this will be included in the next release on the web site. The issue will also be resolved in v4.0 of DynamicPDF Generator for .NET. If you can send an email to our [^a|mailto:support@cete.com|Support Team^], we can send you the beta DLL file which has the fix. Thanks, ceTe Software Support Team

Re: Wingdings Font Doesn't Display

Forum member · Apr 26, 2006
I am having the same problem but with the Webdings font. I have tried to use the code posted above but I am still getting the rectangular placeholders.

Re: Wingdings Font Doesn't Display

Support · Apr 26, 2006
Make sure that the characters that you are trying to use are between the Unicode values 'uF020' and 'uF0FF'. These are the Unicode values for which Webdings defines its characters. Thanks ceTe Software Support Team