I'm currently trying to build a Pdf Parsing tool and am having some problems with the fonts represented in a Pdf file.
My font file folder does contain TimesNewRoman fonts. There are several files on this font. But my pdf file contains a Font called TimesNewRomanPSMT which I believe is the post script version of this font.
When I parse the file, TimesNewRomanPSMT doesn't seem to be recognized.
I'm not sure if it's because I'm using Windows XP and that font type is new or not. Maybe a later version of windows will help (which I'm in the process of organizing).
I'm using Freetype2 and some methods require me to rout my method calls to either Base14 or Freetype supported fonts. With TimesNewRoman it works fine but TimesNewRomanPSMT it doesn't.
I'm wondering if there is somewhere I can download the TimesNewRomanPSMT font file to add to my system? I can't see to find any font files on the web.
Each typeface has several names; the file name eg times.ttf, the truetype name eg Times New Roman Regular, the postscript name eg TimesNewRomanPSMT, etc.
You will probably find that the font file you have is also named TimesNewRomanPSMT behind the scenes.
Thanks, but where could I find the name TimesNewRomanPSMT on my system?
I've done a search of the whole drive and can't find anything with that name in it.
I'm using Windows XP SP3 32bit. Is that a limitation?
The name is likely to be internal to the font file.
On my system Times New Roman Regular is in the file times.ttf. If I open this in FontLab Studio (Third party font development tool) I can view the names that the font is known by:
http://imgur.com/XOtVvoR
I am unsure as to how/if Windows can load the font from its PostScript name, There is probably a mapping in the registry and/or an API for it, I don't have time to look into this at present.
Thanks for the replies. It turns out this is an embedded font in pdf files. It's the postscript version of TimesNewRoman. I've just been a little sidetracked using freetype2 which requires a fontfile for some of it's functions such as FT_Get_Char_index(unicode codepoint). Finding the codepoint is necessary when using fontfiles but I now realize that for embedded fonts, finding things such as Glyph Width are already provided in a width array.