🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
9.0 KiB

  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. Table fields
  4. ------------
  5. wrapper format
  6. The format used to represent the font data. In the table below it
  7. is used only if the font format differs. Possible values are
  8. SFNT binary
  9. PFB binary
  10. PS a text header, followed by binary or text data
  11. LZW compressed with either `gzip' or `compress'
  12. BZ2 compressed with `bzip2'.
  13. font format
  14. How the font is to be accessed, possibly after converting the file
  15. type and wrapper format into a generic form. Bitmap formats are
  16. `BDF', `PCF', and one form of `WINFNT'; all others are vector
  17. formats. `PS' indicates third-order, `TT' second-order Bézier
  18. curves.
  19. font type
  20. Sub-formats of the font format. `SBIT' and `MACSBIT' are bitmap
  21. formats, `MM' and `VAR' support optical axes. `CFF2' supports
  22. optical axes also.
  23. glyph access
  24. If not specified, the glyph access is `standard' to the font
  25. format. Values are `CID' for CID-keyed fonts, `SYNTHETIC' for
  26. fonts that are modified versions of other fonts by means of a
  27. transformation matrix, and `TYPE_0' for PS fonts which are to be
  28. accessed in a tree-like structure.
  29. FreeType driver
  30. The module in the FreeType library which handles the specific font
  31. format. A missing entry means that FreeType doesn't support the
  32. font format (yet).
  33. Notes
  34. -----
  35. The SFNT container format also provides `collections' (usually
  36. having the file extension `.ttc' or `.otc'). A collection contains
  37. multiple font faces that share some tables to avoid redundancy, thus
  38. reducing the file size. In FreeType, elements of a collection can
  39. be accessed with a proper face index.
  40. Both the GX and the OpenType 1.8 variation fonts provide `named
  41. instances'. FreeType maps them to face indices (they can also be
  42. accessed with the standard MM interface).
  43. Other font formats (not using the SFNT wrapper) also provide
  44. multiple faces within one file; they are marked with an asterisk
  45. (`*') in the table below.
  46. FreeType can be configured to support Mac files (on older Mac OS
  47. versions, a `file' is stored as a data and a resource fork, this is,
  48. within two separate data chunks). If a file can't be opened as a
  49. font, FreeType then checks whether it is a resource fork, trying to
  50. extract the contained font data from either a `POST' or `sfnt'
  51. resource.
  52. Please send additions and/or corrections to wl@gnu.org or to the
  53. FreeType developer's list at freetype-devel@nongnu.org (for
  54. subscribers only). If you can provide a font example for a format
  55. which isn't supported yet please send a mail too.
  56. wrapper font font glyph FreeType reference
  57. format format type access driver documents
  58. -----------------------------------------------------------------------------
  59. --- BDF --- --- bdf 5005.BDF_Spec.pdf, X11
  60. SFNT PS TYPE_1 --- type1 Type 1 GX Font Format
  61. (for the Mac) [3]
  62. SFNT PS TYPE_1 CID cid 5180.sfnt.pdf (for the Mac)
  63. [3]
  64. SFNT PS CFF --- cff OT spec, 5176.CFF.pdf
  65. (`OTTO' format)
  66. SFNT PS CFF CID cff OT spec, 5176.CFF.pdf
  67. SFNT PS CFF SYNTHETIC --- OT spec, 5176.CFF.pdf
  68. SFNT PS CFF2 --- cff OT spec 1.8
  69. SFNT TT SBIT --- sfnt XFree86 (bitmaps only;
  70. with `head' table)
  71. SFNT TT MACSBIT --- sfnt OT spec (for the Mac;
  72. bitmaps only; `bhed' table)
  73. SFNT TT --- --- truetype OT spec (`normal' TT font)
  74. SFNT TT VAR --- truetype GX spec (`?var' tables)
  75. SFNT TT VAR --- truetype OT spec 1.8
  76. (`?var' + `?VAR' tables)
  77. --- PS TYPE_1 --- type1 T1_SPEC.pdf
  78. (PFA, Type 1 font resource)
  79. PFB PS TYPE_1 --- type1 T1_SPEC.pdf,
  80. 5040.Download_Fonts.pdf
  81. (`normal' Type 1 font)
  82. --- PS TYPE_1 CID cid PLRM.pdf (CID Font Type 0;
  83. Type 9 font)
  84. --- PS MM --- type1 5015.Type1_Supp.pdf
  85. (Multiple Masters)
  86. --- PS CFF --- cff 5176.CFF.pdf (`pure' CFF)
  87. --- PS* CFF CID cff 5176.CFF.pdf (`pure' CFF)
  88. --- PS CFF SYNTHETIC --- 5176.CFF.pdf (`pure' CFF)
  89. --- PS CFF/MM --- cff old 5167.CFF.pdf (`pure' CFF)
  90. [3]
  91. --- PS* CFF/MM CID cff old 5167.CFF.pdf (`pure' CFF)
  92. [3]
  93. --- PS CFF/MM SYNTHETIC --- old 5167.CFF.pdf (`pure' CFF)
  94. [3]
  95. PS PS CFF --- --- PLRM.pdf (Type 2) [1]
  96. PS PS* CFF CID --- PLRM.pdf (Type 2) [1]
  97. PS PS CFF SYNTHETIC --- PLRM.pdf (Type 2) [1]
  98. PS PS CFF/MM --- --- PLRM.pdf (Type 2) [1]
  99. PS PS* CFF/MM CID --- PLRM.pdf (Type 2) [1]
  100. PS PS CFF/MM SYNTHETIC --- PLRM.pdf (Type 2) [1]
  101. --- PS --- TYPE_0 --- PLRM.pdf
  102. --- PS TYPE_3 --- --- PLRM.pdf (never supported)
  103. --- PS TYPE_3 CID --- PLRM.pdf (CID Font Type 1;
  104. Type 10 font; never supported)
  105. PS PS TYPE_14 --- --- PLRM.pdf (Chameleon font;
  106. Type 14 font; never supported?)
  107. --- PS TYPE_32 CID --- PLRM.pdf (CID Font Type 4;
  108. Type 32 font; never supported?)
  109. PS TT --- --- type42 5012.Type42_Spec.pdf
  110. (Type 42 font)
  111. PS TT --- CID --- PLRM.pdf (CID Font Type 2;
  112. Type 11 font)
  113. ? ? CEF ? cff ?
  114. --- PCF --- --- pcf X11 [4]
  115. LZW PCF --- --- pcf X11 [4]
  116. BZ2 PCF --- --- pcf X11 [4]
  117. --- PFR* PFR0 --- pfr [2]
  118. --- PFR PFR1 --- --- (undocumented, proprietary;
  119. probably never supported)
  120. --- WINFNT* --- --- winfonts Windows developer's notes [5]
  121. --- WINFNT VECTOR --- --- Windows developer's notes [5]
  122. [1] Support should be rather simple since this is identical to `CFF'
  123. but in a PS wrapper.
  124. [2] The official PFR specification is no longer available, but
  125. archive.org has archived it:
  126. https://web.archive.org/web/20091014062300/http://www.bitstream.com/font_rendering/products/truedoc/pfrspec.html
  127. https://web.archive.org/web/20081115152605/http://www.bitstream.com/font_rendering/pdfs/pfrspec1.3.pdf
  128. The syntax of the auxiliary data is not defined there, but is
  129. partially defined in MHP 1.0.3 (also called ETSI TS 101812 V1.3.1)
  130. section 7.4.
  131. https://www.etsi.org/
  132. https://webapp.etsi.org/workprogram/Report_WorkItem.asp?WKI_ID=18799
  133. [3] Support is rudimentary currently; some tables or data are not
  134. loaded yet.
  135. [4] See
  136. THE X WINDOW SYSTEM SERVER: X VERSION 11, RELEASE 5
  137. Elias Israel, Erik Fortune, Digital Press, 1992
  138. ISBN 1-55558-096-3
  139. for a specification given in Appendix D on pgs. 436-450. However,
  140. this information might be out of date; unfortunately, there is no
  141. PCF specification available online, and this book is out of print.
  142. George Williams deduced the font format from the X11 sources and
  143. documented it for his FontForge font editor:
  144. https://fontforge.github.io/pcf-format.html
  145. [5] This is from MS Windows 3; see Microsoft's Knowledge Base article at
  146. https://support.microsoft.com/kb/65123
  147. ------------------------------------------------------------------------
  148. Copyright (C) 2004-2021 by
  149. David Turner, Robert Wilhelm, and Werner Lemberg.
  150. This file is part of the FreeType project, and may only be used,
  151. modified, and distributed under the terms of the FreeType project
  152. license, LICENSE.TXT. By continuing to use, modify, or distribute this
  153. file you indicate that you have read the license and understand and
  154. accept it fully.
  155. --- end of formats.txt ---
  156. Local Variables:
  157. coding: utf-8
  158. End: