Git init
[framework/graphics/freetype.git] / docs / formats.txt
1 This  file  contains a  list  of various  font  formats.   It gives  the
2 reference document and whether it is supported in FreeType 2.
3
4
5   file type:
6     The only special  case is `MAC'; on older Mac  OS versions, a `file'
7     is  stored as  a  data and  a  resource fork,  this  is, within  two
8     separate data chunks.   In all other cases, the  font data is stored
9     in a single file.
10
11   wrapper format:
12     The format used  to represent the font data.  In  the table below it
13     is used only if the font format differs.  Possible values are `SFNT'
14     (binary), `PS' (a text header, followed by binary or text data), and
15     `LZW' (compressed with either `gzip' or `compress').
16
17   font format:
18     How the font  is to be accessed, possibly  after converting the file
19     type and  wrapper format  into a generic  form.  Bitmap  formats are
20     `BDF',  `PCF', and  one  form  of `WINFNT';  all  others are  vector
21     formats.
22
23   font type:
24     Sub-formats  of the font  format.  `SBIT'  and `MACSBIT'  are bitmap
25     formats, `MM' and `VAR' support optical axes.
26
27   glyph access:
28     If not specified, the glyph access is `standard' to the font format.
29     Values are  `CID' for CID-keyed  fonts, `SYNTHETIC' for  fonts which
30     are modified  versions of other  fonts by means of  a transformation
31     matrix, `COLLECTION' for collecting  multiple fonts (sharing most of
32     the data) into a single file, and `TYPE_0' for PS fonts which are to
33     be accessed in a tree-like structure.
34
35   FreeType driver:
36     The module in  the FreeType library which handles  the specific font
37     format.   A missing entry  means that  FreeType doesn't  support the
38     font format (yet).
39
40
41 Please  send  additions  and/or  corrections  to wl@gnu.org  or  to  the
42 FreeType developer's list  at freetype-devel@nongnu.org (for subscribers
43 only).   If you  can provide  a font  example for  a format  which isn't
44 supported yet please send a mail too.
45
46
47 file wrapper font   font    glyph      FreeType reference
48 type format  format type    access     driver   documents
49 ----------------------------------------------------------------------------
50
51 ---  ---     BDF    ---     ---        bdf      5005.BDF_Spec.pdf, X11
52
53
54 ---  SFNT    PS     TYPE_1  ---        type1    Type 1 GX Font Format
55                                                 (for the Mac) [3]
56 MAC  SFNT    PS     TYPE_1  ---        type1    Type 1 GX Font Format
57                                                 (for the Mac) [3]
58 ---  SFNT    PS     TYPE_1  CID        cid      5180.sfnt.pdf (for the Mac)
59                                                 [3]
60 MAC  SFNT    PS     TYPE_1  CID        cid      5180.sfnt.pdf (for the Mac)
61                                                 [3]
62 ---  SFNT    PS     CFF     ---        cff      OT spec, 5176.CFF.pdf
63                                                 (`OTTO' format)
64 MAC  SFNT    PS     CFF     ---        cff      OT spec, 5176.CFF.pdf
65                                                 (`OTTO' format)
66 ---  SFNT    PS     CFF     CID        cff      OT spec, 5176.CFF.pdf
67 MAC  SFNT    PS     CFF     CID        cff      OT spec, 5176.CFF.pdf
68 ---  SFNT    PS     CFF     SYNTHETIC  ---      OT spec, 5176.CFF.pdf
69 MAC  SFNT    PS     CFF     SYNTHETIC  ---      OT spec, 5176.CFF.pdf
70 ---  SFNT    TT     SBIT    ---        sfnt     XFree86 (bitmaps only;
71                                                 with `head' table)
72 ---  SFNT    TT     MACSBIT ---        sfnt     OT spec (for the Mac;
73                                                 bitmaps only; `bhed' table)
74 MAC  SFNT    TT     MACSBIT ---        sfnt     OT spec (for the Mac;
75                                                 bitmaps only; `bhed' table)
76 ---  SFNT    TT     ---     ---        truetype OT spec (`normal' TT font)
77 MAC  SFNT    TT     ---     ---        truetype OT spec (`normal' TT font)
78 MAC  SFNT    TT     VAR     ---        truetype GX spec (`?var' tables)
79 ---  SFNT    TT     ---     COLLECTION truetype OT spec (this can't be CFF)
80 MAC  SFNT    TT     ---     COLLECTION truetype OT spec (this can't be CFF)
81
82
83 ---  ---     PS     TYPE_1  ---        type1    T1_SPEC.pdf
84                                                 (`normal' Type 1 font)
85 MAC  ---     PS     TYPE_1  ---        type1    T1_SPEC.pdf
86                                                 (`normal' Type 1 font)
87 ---  ---     PS     TYPE_1  CID        cid      PLRM.pdf (CID Font Type 0;
88                                                 Type 9 font)
89 ---  ---     PS     MM      ---        type1    5015.Type1_Supp.pdf
90                                                 (Multiple Masters)
91 ---  ---     PS     CFF     ---        cff      5176.CFF.pdf (`pure' CFF)
92 ---  ---     PS     CFF     CID        cff      5176.CFF.pdf (`pure' CFF)
93 ---  ---     PS     CFF     SYNTHETIC  ---      5176.CFF.pdf (`pure' CFF)
94 ---  PS      PS     CFF     ---        ---      PLRM.pdf (Type 2) [1]
95 ---  PS      PS     CFF     CID        ---      PLRM.pdf (Type 2) [1]
96 ---  PS      PS     CFF     SYNTHETIC  ---      PLRM.pdf (Type 2) [1]
97 ---  ---     PS     ---     TYPE_0     ---      PLRM.pdf
98 ---  ---     PS     TYPE_3  ---        ---      PLRM.pdf (never supported)
99 ---  ---     PS     TYPE_3  CID        ---      PLRM.pdf (CID Font Type 1;
100                                                 Type 10 font; never supported)
101 ---  PS      PS     TYPE_14 ---        ---      PLRM.pdf (Chameleon font;
102                                                 Type 14 font; never supported?)
103 ---  ---     PS     TYPE_32 CID        ---      PLRM.pdf (CID Font Type 4;
104                                                 Type 32 font; never supported?)
105 ---  PS      TT     ---     ---        type42   5012.Type42_Spec.pdf
106                                                 (Type 42 font)
107 ---  PS      TT     ---     CID        ---      PLRM.pdf (CID Font Type 2;
108                                                 Type 11 font)
109
110
111 ---  ?       ?      CEF     ?          cff      ?
112
113
114 ---  ---     PCF    ---     ---        pcf      X11 [4]
115 ---  LZW     PCF    ---     ---        pcf      X11 [4]
116
117
118 ---  ---     PFR    PFR0    ---        pfr      [2]
119 ---  ---     PFR    PFR1    ---        ---      (undocumented, proprietary;
120                                                 probably never supported)
121
122
123 ---  ---     WINFNT ---     ---        winfonts MS Windows 3 Developer's Notes
124 ---  ---     WINFNT VECTOR  ---        ---      MS Windows 3 Developer's Notes
125
126
127 [1] Support should be rather simple since this is identical to `CFF' but
128     in a PS wrapper.
129
130 [2] Official PFR specification:
131
132       http://www.bitstream.com/categories/developer/truedoc/pfrspec.html
133       http://www.bitstream.com/categories/developer/truedoc/pfrspec1.2.pdf
134
135     The  syntax of  the  auxiliary data  is  not defined  there, but  is
136     partially defined in  MHP 1.0.3 (also called ETSI  TS 101812 V1.3.1)
137     section 7.4.
138
139       http://www.etsi.org/
140       http://webapp.etsi.org/workprogram/Report_WorkItem.asp?WKI_ID=18799
141
142     (free registration required).
143
144 [3] Support is rudimentary currently; some tables are not loaded yet.
145
146 [4] See
147
148       THE X WINDOW SYSTEM SERVER: X VERSION 11, RELEASE 5
149       Elias Israel, Erik Fortune, Digital Press, 1992
150       ISBN 1-55558-096-3
151
152     for a specification  given in Appendix D on pgs. 436-450.   However,
153     this information  might be out of  date; unfortunately,  there is no
154     PCF  specification available  online, and this book is out of print. 
155     George  Williams deduced  the font  format from the X11  sources and
156     documented it for his FontForge font editor:
157
158       http://fontforge.sourceforge.net/pcf-format.html
159
160 ------------------------------------------------------------------------
161
162 Copyright 2004, 2005, 2008, 2009, 2010 by
163 David Turner, Robert Wilhelm, and Werner Lemberg.
164
165 This  file is  part  of the  FreeType  project, and  may  only be  used,
166 modified,  and  distributed under  the  terms  of  the FreeType  project
167 license, LICENSE.TXT.  By continuing  to use, modify, or distribute this
168 file  you indicate that  you have  read the  license and  understand and
169 accept it fully.
170
171
172 --- end of formats.txt ---