fonts 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. #------------------------------------------------------------------------------
  2. # $File: fonts,v 1.35 2017/03/17 21:35:28 christos Exp $
  3. # fonts: file(1) magic for font data
  4. #
  5. 0 search/1 FONT ASCII vfont text
  6. 0 short 0436 Berkeley vfont data
  7. 0 short 017001 byte-swapped Berkeley vfont data
  8. # PostScript fonts (must precede "printer" entries), quinlan@yggdrasil.com
  9. 0 string %!PS-AdobeFont-1. PostScript Type 1 font text
  10. >20 string >\0 (%s)
  11. 6 string %!PS-AdobeFont-1. PostScript Type 1 font program data
  12. 0 string %!FontType1 PostScript Type 1 font program data
  13. 6 string %!FontType1 PostScript Type 1 font program data
  14. 0 string %!PS-Adobe-3.0\ Resource-Font PostScript Type 1 font text
  15. # Summary: PostScript Type 1 Printer Font Metrics
  16. # URL: https://en.wikipedia.org/wiki/PostScript_fonts
  17. # Reference: http://partners.adobe.com/public/developer/en/font/5178.PFM.pdf
  18. # Modified by: Joerg Jenderek
  19. # Note: moved from ./msdos magic
  20. # dfVersion 256=0100h
  21. 0 uleshort 0x0100
  22. # GRR: line above is too general as it catches also TrueType font,
  23. # raw G3 data FAX, WhatsApp encrypted and Panorama database
  24. # dfType 129=0081h
  25. >66 uleshort 0x0081
  26. # dfVertRes 300=012Ch not needed as additional test
  27. #>>70 uleshort 0x012c
  28. # dfHorizRes 300=012Ch
  29. #>>>72 uleshort 0x012c
  30. # dfDriverInfo points to postscript information section
  31. >>(101.l) string/c Postscript Printer Font Metrics
  32. # above labeled "PFM data" by ./msdos (version 5.28) or "Adobe Printer Font Metrics" by TrID
  33. !:mime application/x-font-pfm
  34. # AppleShare Print Server
  35. #!:apple ASPS????
  36. !:ext pfm
  37. # dfCopyright 60 byte null padded Copyright string. uncomment it to get old looking
  38. #>>>6 string >\060 - %-.60s
  39. # dfDriverInfo
  40. >>>139 ulelong >0
  41. # often abbreviated and same as filename
  42. >>>>(139.l) string x %s
  43. # dfSize
  44. >>>2 ulelong x \b, %d bytes
  45. # dfFace 210=D2h 9Eh
  46. >>>105 ulelong >0
  47. # Windows font name
  48. >>>>(105.l) string x \b, %s
  49. # dfItalic
  50. >>>80 ubyte 1 italic
  51. # dfUnderline
  52. >>>81 ubyte 1 underline
  53. # dfStrikeOut
  54. >>>82 ubyte 1 strikeout
  55. # dfWeight 400=0x0190 300=0x012c 500=0x01f4 600=0x0258 700=0x02bc
  56. >>>83 uleshort >699 bold
  57. # dfPitchAndFamily 16 17 48 49 64 65
  58. >>>90 ubyte 16 serif
  59. >>>90 ubyte 17 serif proportional
  60. #>>>90 ubyte 48 other
  61. >>>90 ubyte 49 proportional
  62. >>>90 ubyte 64 script
  63. >>>90 ubyte 65 script proportional
  64. # X11 font files in SNF (Server Natural Format) format
  65. # updated by Joerg Jenderek at Feb 2013
  66. # http://computer-programming-forum.com/51-perl/8f22fb96d2e34bab.htm
  67. 0 belong 00000004 X11 SNF font data, MSB first
  68. #>104 belong 00000004 X11 SNF font data, MSB first
  69. !:mime application/x-font-sfn
  70. # GRR: line below too general as it catches also Xbase index file t3-CHAR.NDX
  71. 0 lelong 00000004
  72. >104 lelong 00000004 X11 SNF font data, LSB first
  73. !:mime application/x-font-sfn
  74. # X11 Bitmap Distribution Format, from Daniel Quinlan (quinlan@yggdrasil.com)
  75. 0 search/1 STARTFONT\ X11 BDF font text
  76. # From: Joerg Jenderek
  77. # URL: http://grub.gibibit.com/New_font_format
  78. # Reference: util/grub-mkfont.c
  79. # include/grub/fontformat.h
  80. # FONT_FORMAT_SECTION_NAMES_FILE
  81. 0 string FILE
  82. # FONT_FORMAT_PFF2_MAGIC
  83. >8 string PFF2
  84. # leng 4 only at the moment
  85. >>4 ubelong 4
  86. # FONT_FORMAT_SECTION_NAMES_FONT_NAME
  87. >>>12 string NAME GRUB2 font
  88. !:mime application/x-font-pf2
  89. !:ext pf2
  90. # length of font_name
  91. >>>>16 ubelong >0
  92. # font_name
  93. >>>>>20 string >\0 "%-s"
  94. # X11 fonts, from Daniel Quinlan (quinlan@yggdrasil.com)
  95. # PCF must come before SGI additions ("MIPSEL MIPS-II COFF" collides)
  96. 0 string \001fcp X11 Portable Compiled Font data,
  97. >12 lelong ^0x08 bit: LSB,
  98. >12 lelong &0x08 bit: MSB,
  99. >12 lelong ^0x04 byte: LSB first
  100. >12 lelong &0x04 byte: MSB first
  101. 0 string D1.0\015 X11 Speedo font data
  102. #------------------------------------------------------------------------------
  103. # FIGlet fonts and controlfiles
  104. # From figmagic supplied with Figlet version 2.2
  105. # "David E. O'Brien" <obrien@FreeBSD.ORG>
  106. 0 string flf FIGlet font
  107. >3 string >2a version %-2.2s
  108. 0 string flc FIGlet controlfile
  109. >3 string >2a version %-2.2s
  110. # libGrx graphics lib fonts, from Albert Cahalan (acahalan@cs.uml.edu)
  111. # Used with djgpp (DOS Gnu C++), sometimes Linux or Turbo C++
  112. 0 belong 0x14025919 libGrx font data,
  113. >8 leshort x %dx
  114. >10 leshort x \b%d
  115. >40 string x %s
  116. # Misc. DOS VGA fonts, from Albert Cahalan (acahalan@cs.uml.edu)
  117. 0 belong 0xff464f4e DOS code page font data collection
  118. 7 belong 0x00454741 DOS code page font data
  119. 7 belong 0x00564944 DOS code page font data (from Linux?)
  120. 4098 string DOSFONT DOSFONT2 encrypted font data
  121. # downloadable fonts for browser (prints type) anthon@mnt.org
  122. # https://tools.ietf.org/html/rfc3073
  123. 0 string PFR1 Portable Font Resource font data (new)
  124. >102 string >0 \b: %s
  125. 0 string PFR0 Portable Font Resource font data (old)
  126. >4 beshort >0 version %d
  127. # True Type fonts
  128. 0 string \000\001\000\000\000 TrueType font data
  129. !:mime application/x-font-ttf
  130. 0 string \007\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font
  131. 0 string \012\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font
  132. # TrueType/OpenType font collections (.ttc)
  133. # http://www.microsoft.com/typography/otspec/otff.htm
  134. 0 string ttcf TrueType font collection data
  135. >4 belong 0x00010000 \b, 1.0
  136. >>8 belong >0 \b, %d fonts
  137. >4 belong 0x00020000 \b, 2.0
  138. >>8 belong >0 \b, %d fonts
  139. # 0x44454947 = 'DSIG'
  140. >>>16 belong 0x44534947 \b, digitally signed
  141. # Opentype font data from Avi Bercovich
  142. 0 string OTTO OpenType font data
  143. !:mime application/vnd.ms-opentype
  144. # Gurkan Sengun <gurkan@linuks.mine.nu>, www.linuks.mine.nu
  145. 0 string SplineFontDB: Spline Font Database
  146. !:mime application/vnd.font-fontforge-sfd
  147. >14 string x version %s
  148. # EOT
  149. 0x40 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
  150. >0x22 string LP Embedded OpenType (EOT)
  151. # workaround until there's lepstring16
  152. # >>0x52 lepstring16/h >\0 \b, %s family
  153. >>0x52 short !0
  154. >>>0x54 lestring16 x \b, %s family
  155. !:mime application/vnd.ms-fontobject
  156. # Web Open Font Format (.woff)
  157. 0 name woff
  158. >4 belong 0x00010000 \b, TrueType
  159. >4 belong 0x4F54544F \b, CFF
  160. >4 belong 0x74727565 \b, TrueType
  161. >4 default x
  162. >>4 belong x \b, flavor %d
  163. >8 belong x \b, length %d
  164. #>12 beshort x \b, numTables %d
  165. #>14 beshort x \b, reserved %d
  166. #>16 belong x \b, totalSfntSize %d
  167. # http://www.w3.org/TR/WOFF/
  168. 0 string wOFF Web Open Font Format
  169. >0 use woff
  170. >20 beshort x \b, version %d
  171. >22 beshort x \b.%d
  172. # http://www.w3.org/TR/WOFF2/
  173. 0 string wOF2 Web Open Font Format (Version 2)
  174. >0 use woff
  175. #>20 belong x \b, totalCompressedSize %d
  176. >24 beshort x \b, version %d
  177. >26 beshort x \b.%d