On Wed, 2006-01-11 at 12:13, Zoltan Boszormenyi wrote:
> exact file name. How can I deduce the font type from only the binary 
> data using FreeType2?
> I am on Fedora Core 3, it only has FreeType2-2.1.9.
You don't need freetype for that decision. Look at the first few bytes
of the file:

Type1 fonts begin with
        "%!PS-"
or (for pfbs)
        80.01.?.?.?.?.
        "%!PS"

TrueType fonts begin with:
        00.01.00.00
or
        "true"

ttc files begin with
        "ttcf"

OpenType files begin with 
        "OTTO"

Bare CFF fonts begin with
        01.00.04

SVG fonts begin with
        "<?xml"



_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to