I want to offer my user the option od seleting the font for their document.
I can find the trutype fonts on the system by using the System.Drawing.FontFamily.Families collection and this gives me the font name, but DynamicPDF requires the associated *.ttf filename.
How can I find this?
Stuart Eastland
Truetype font filename
Re: Truetype font filename
Support · Sep 6, 2006Hello Stuart,
Yes our product requires you to specify the full name of the TrueType font including the .TTF extension. There is no such method in our product which can get the font names or paths. You will have to specify the path to the font file in order to use the font in the PDF document.
Thanks,
ceTe Software Support Team
Re: Truetype font filename
Forum member · Oct 3, 2006I think I was trying this from the wrong angle. It seems strange that since the .NET framework provides access to FontFamilies that DynamicPDF cannot make use of this, however I resolved my problem by reading all the TTF files from the \Windows\Font folder and instantiating a DynamicPdf.Text.TrueType object. From this I was able to use the Name property to present to the user, effectively giving me what I need.