I'm having issues getting a special character to display in a PDF. Specifically, I'm using Century Gothic and trying to display the Bullet character (Alt+0149).
I've troubleshooted my program up to the point that the Bullet is going into the FormattedTextArea with the given font, and am 100% certain it is going into the PDF. However, it only displays as an empty box.
I can get the Bullet to display with that font on any other system on my computer (tested Character Map, Word, Excel, Notepad++).
Does anybody know how to fix this?
Font Bullet Not Displaying
Re: Font Bullet Not Displaying
Support · Apr 8, 2014Hello,
In order to add a bullet symbol to the PDF you will need to make sure that you are using the exact Unicode value for the symbol. Here is the sample code:
Document document = new Document();
Page page = new Page();
TrueTypeFont fontObj = new TrueTypeFont("GOTHIC.TTF");
FontFamily fontFamilyObj = new FontFamily("GothicFontFamily", fontObj);
FormattedTextArea area = new FormattedTextArea("\u00B7 This is test bullet", 100, 100, 200, 200, fontFamilyObj, 12, true);
page.Elements.Add(area);
document.Pages.Add(page);
document.Draw(@"C:\Temp\MyDocument.pdf");
Thanks,
ceTe Software Support Team.
Re: Font Bullet Not Displaying
Forum member · Apr 8, 2014Tested your Unicode idea, used \u0095 (the Bullet). Got same empty box character in output.
Re: Font Bullet Not Displaying
Support · Apr 9, 2014Hello,
Can you please send over the following details to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so that we can look into it further?
1.Sample code using which we can recreate the behavior.
2.Exact version and build number of the DynamicPDF DLL file. You can get this information using Visual Studio References properties (Description) of the DynamicPDF DLL file.
3.Output PDF.
4.Font file.
5.Screenshot for the character map of the font showing the Unicode value for the bullet symbol.
Thanks,
ceTe Software Support Team.
Re: Font Bullet Not Displaying
Forum member · Apr 9, 2014Managed to get it to work using /u2022 (Unicode value from Character Map), instead of the hex conversion of the Alt code. Thank you for your assistance.