freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freetype] how to find the actual font name from windows


From: Ian Brown
Subject: [Freetype] how to find the actual font name from windows
Date: Mon, 28 Jan 2002 11:10:10 +0100

Hello,
      this is only peripherally related to freetype, but this seemed like
the best list to ask. The bar code library that we use in our main
application has moved over to using freetype for the human readable text.
This means that I now have to pass it a font filename rather than a LOGFONT.
The problem is that the main application still uses LOGFONTs (needs to be
backwards compatible).
So, I need to find the actual font file that windows is using when I select
a particular LOGFONT. Does anyone have any ideas how to get this?
 
In our main application, I use GetFontData() to read the file ... but I need
to pass a filename to the library. The only solution I have at the moment,
is to use GetFontData() to read the data, and then save it in a temporary
file ... then pass the temporary filename to the libray. This is a
particulary unpleasant solution though.
 
Any ideas would be gratefully accepted.
 
Ian Brown
PrintSoft Systems GmbH
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]