]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/magic/Magdir/fonts
Update DTS files from Linux 4.12
[FreeBSD/FreeBSD.git] / contrib / file / magic / Magdir / fonts
1
2 #------------------------------------------------------------------------------
3 # $File: fonts,v 1.33 2016/09/14 01:26:26 christos Exp $
4 # fonts:  file(1) magic for font data
5 #
6 0       search/1        FONT            ASCII vfont text
7 0       short           0436            Berkeley vfont data
8 0       short           017001          byte-swapped Berkeley vfont data
9
10 # PostScript fonts (must precede "printer" entries), quinlan@yggdrasil.com
11 0       string          %!PS-AdobeFont-1.       PostScript Type 1 font text
12 >20     string          >\0                     (%s)
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
17
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 
23 # dfVersion 256=0100h 
24 0               uleshort        0x0100          
25 # GRR: line above is too general as it catches also TrueType font,
26 # raw G3 data FAX, WhatsApp encrypted and Panorama database
27 # dfType 129=0081h
28 >66             uleshort        0x0081          
29 # dfVertRes 300=012Ch not needed as additional test
30 #>>70           uleshort        0x012c          
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
38 #!:apple        ASPS????
39 !:ext   pfm
40 # dfCopyright 60 byte null padded Copyright string. uncomment it to get old looking
41 #>>>6           string          >\060           - %-.60s
42 # dfDriverInfo
43 >>>139          ulelong         >0              
44 # often abbreviated and same as filename
45 >>>>(139.l)     string          x               %s
46 # dfSize
47 >>>2            ulelong         x               \b, %d bytes
48 # dfFace 210=D2h 9Eh
49 >>>105          ulelong         >0              
50 # Windows font name
51 >>>>(105.l)     string          x               \b, %s
52 # dfItalic
53 >>>80           ubyte           1               italic
54 # dfUnderline
55 >>>81           ubyte           1               underline
56 # dfStrikeOut
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
61 >>>90           ubyte           16              serif
62 >>>90           ubyte           17              serif proportional
63 #>>>90          ubyte           48              other
64 >>>90           ubyte           49              proportional
65 >>>90           ubyte           64              script
66 >>>90           ubyte           65              script proportional
67
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
75 0       lelong          00000004                
76 >104    lelong          00000004                X11 SNF font data, LSB first
77 !:mime  application/x-font-sfn
78
79 # X11 Bitmap Distribution Format, from Daniel Quinlan (quinlan@yggdrasil.com)
80 0       search/1        STARTFONT\              X11 BDF font text
81
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
87 0                       string          FILE            
88 # FONT_FORMAT_PFF2_MAGIC
89 >8                      string          PFF2            
90 # leng 4 only at the moment
91 >>4                     ubelong         4               
92 # FONT_FORMAT_SECTION_NAMES_FONT_NAME
93 >>>12                   string          NAME            GRUB2 font
94 !:mime                  application/x-font-pf2
95 !:ext                   pf2
96 # length of font_name
97 >>>>16                  ubelong         >0              
98 # font_name
99 >>>>>20                 string          >\0             "%-s"
100
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
107
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
116
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,
120 >8      leshort         x               %dx
121 >10     leshort         x               \b%d
122 >40     string          x               %s
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
128
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
135
136 # True Type fonts
137 0       string  \000\001\000\000\000    TrueType font data
138 !:mime application/x-font-ttf
139
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
142
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
152
153 # Opentype font data from Avi Bercovich
154 0       string          OTTO            OpenType font data
155 !:mime application/vnd.ms-opentype
156
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
161
162 # EOT
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
167 >>0x52  short   !0
168 >>>0x54 lestring16      x               \b, %s family
169 !:mime application/vnd.ms-fontobject
170
171 # Web Open Font Format (.woff)
172 0       name            woff
173 >4      belong          0x00010000      \b, TrueType
174 >4      belong          0x4F54544F      \b, CFF
175 >4      belong          0x74727565      \b, TrueType
176 >4      default         x
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
182
183 # http://www.w3.org/TR/WOFF/
184 0       string          wOFF    Web Open Font Format
185 >0      use             woff
186 >20     beshort         x       \b, version %d
187 >22     beshort         x       \b.%d
188 # http://www.w3.org/TR/WOFF2/
189 0       string          wOF2    Web Open Font Format (Version 2)
190 >0      use             woff
191 #>20    belong          x       \b, totalCompressedSize %d
192 >24     beshort         x       \b, version %d
193 >26     beshort         x       \b.%d