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