Re: How to determine a Truetype Filename

From: Peter Below (TeamB) (100113.1101_at_compuXXserve.com)
Date: 11/30/03


Date: Sun, 30 Nov 2003 21:34:28 +0100

In article <3fc9fed5@newsgroups.borland.com>, Hebron wrote:
> I need to be able to determine the filename of a chosen TrueType font.
> Problem is, there appear to be multiple versions of the names in the
> registry.
>
> For example, in a font selection list, I might see the name
> "Futura MdCn BT" For Futura Medium, Condensed.
>
> In the key: HLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts
> I will see a name like "Futura MdCn-Italic BT (TrueType)" with an
> accompanying value of the desired .TTF filename. This name is
> sufficiently dissimilar that I cannot easily derive it from the former
> name that I saw in the user-font-selection-list.
>
> Any help would be gratefully appreciated.

The fonts display name is embedded somewhere in the TTF file. As far as
i know there is no API available to extract it, though, you basically
have to know how a TTF file is structured internally to be able to find
the data in the file (for which you can use GetFontData or direct file
access). The TT file format is documented by MS, you just have to find
the docs on msdn.microsoft.com.

This has come up periodically in the past, by the way. You may be able
to find the answer in the newsgroup archives...

--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be


Relevant Pages

  • Re: Standards compliance (HTML)
    ... your program didn't produce valid html so I ... > characterfilename ... Font is one of those deprecated tags. ... unusual browsers (like screen readers and browsers in very small ...
    (comp.lang.fortran)
  • Re: enclose font in website
    ... about the software used to create it, but the resultant font file. ... Your program is using the TTF file on your local machine and you have ... It is your video card driver. ... Compare this to the GIF file format. ...
    (alt.html)
  • Re: Getting Info from a .TTF File
    ... a .TTF file IS a .TTF file, at least not in the strictest sense. ... TIMES.TTF file as an example...on Windows XP, it's actually an OpenType ... font, not a TrueType font. ...
    (microsoft.public.vb.general.discussion)
  • Re: EngraversGothic BT looks different on Win XP / Word 2007 than Win 2K / Word 2K
    ... viewing it in Windows Explorer is that the filenames of many fonts don't ... Once you've found the font by its name, ... Note the filename. ...
    (microsoft.public.word.newusers)
  • Re: How to create ttf file
    ... The glyph data itself is stored within the "glyf" table of a TTF file, however from a GDI perspective you can extract the glyph data ... A TTF font is made up of vectors which are easily scalable, a Bitmap on the other hand is raster based and not so easily scalable. ...
    (microsoft.public.win32.programmer.gdi)