freetype
[Top][All Lists]
Advanced

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

Re: [ft] How to decide whether a binary is Type1 or TTF?


From: George Williams
Subject: Re: [ft] How to decide whether a binary is Type1 or TTF?
Date: 12 Jan 2006 17:49:32 -0800

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"





reply via email to

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