freetype
[Top][All Lists]
Advanced

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

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


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

If you could send me the code it would help a lot!

I use New_Memory_Face in my AFPDS/PCL/IJPDS viewer, but cannot use it in the current product because the library interface only takes a filename, and I don't want to force the library developer to change the interface.

Thanks, Ian
mailto:address@hidden


-----Original Message-----
From: Leonard Rosenthol [mailto:address@hidden]
Sent: Monday, January 28, 2002 3:19 PM
To: address@hidden; address@hidden
Subject: Re: [Freetype] how to find the actual font name from windows

At 11:10 AM 1/28/2002 +0100, Ian Brown wrote:
>       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?
>

         I was just sent a code snippet that does exactly this -
LOGFONT->filename for use with FreeType.  I am looking at how best to
integrate it into the FT library much the same way as we do it on the Mac
OS side.

         If you would like the code for yourself in the meantime, I can
certainly send it to you...


>In our main application, I use GetFontData() to read the file ... but I need
>to pass a filename to the library.

         Actually, this will work fine - just use the memory calls
(FT_New_Memory_Face() instead of FT_New_Face()).


Leonard


_______________________________________________
Freetype mailing list
address@hidden
http://www.freetype.org/mailman/listinfo/freetype


reply via email to

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