Re: How to determine a Truetype Filename
From: Peter Below (TeamB) (100113.1101_at_compuXXserve.com)
Date: 11/30/03
- Next message: Dittmar, Thorsten: "Re: Hotkey functionality?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Dittmar, Thorsten: "Re: Hotkey functionality?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|