freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [Doubt] About reading a font file to check for its driver


From: Alan Coopersmith
Subject: Re: [ft-devel] [Doubt] About reading a font file to check for its driver.
Date: Mon, 7 May 2018 22:14:39 -0700
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 05/ 7/18 09:51 PM, Parth Wazurkar wrote:
> What are these magic numbers? where can I find details about magic numbers.
https://en.wikipedia.org/wiki/Magic_number_(programming) explains what they
are - just unique values in a specific position in the file to help identify
the format even if the file gets renamed.

The actual numbers would be found in the file format specifications for each
font format - you can find pointers to those in:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/formats.txt
http://fileformats.archiveteam.org/wiki/Fonts

And there's probably a collection of them in the /etc/magic file used by
the file(1) command on most Linux/UNIX systems too.  (For that, see
http://www.darwinsys.com/file/ for more info.)

-- 
        -Alan Coopersmith-               address@hidden
         Oracle Solaris Engineering - https://blogs.oracle.com/alanc



reply via email to

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