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# 60 search/1 FONT ASCII vfont text 70 short 0436 Berkeley vfont data 80 short 017001 byte-swapped Berkeley vfont data 9 10# PostScript fonts (must precede "printer" entries), quinlan@yggdrasil.com 110 string %!PS-AdobeFont-1. PostScript Type 1 font text 12>20 string >\0 (%s) 136 string %!PS-AdobeFont-1. PostScript Type 1 font program data 140 string %!FontType1 PostScript Type 1 font program data 156 string %!FontType1 PostScript Type 1 font program data 160 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 240 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 710 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 750 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) 800 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 870 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) 1030 string \001fcp X11 Portable Compiled Font data 104>12 byte 0x02 \b, LSB first 105>12 byte 0x0a \b, MSB first 1060 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> 1120 string flf FIGlet font 113>3 string >2a version %-2.2s 1140 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++ 1190 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) 1240 belong 0xff464f4e DOS code page font data collection 1257 belong 0x00454741 DOS code page font data 1267 belong 0x00564944 DOS code page font data (from Linux?) 1274098 string DOSFONT DOSFONT2 encrypted font data 128 129# downloadable fonts for browser (prints type) anthon@mnt.org 130# https://tools.ietf.org/html/rfc3073 1310 string PFR1 Portable Font Resource font data (new) 132>102 string >0 \b: %s 1330 string PFR0 Portable Font Resource font data (old) 134>4 beshort >0 version %d 135 136# True Type fonts 1370 string \000\001\000\000\000 TrueType font data 138!:mime application/x-font-ttf 139 1400 string \007\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font 1410 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 1450 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 1540 string OTTO OpenType font data 155!:mime application/vnd.ms-opentype 156 157# Gurkan Sengun <gurkan@linuks.mine.nu>, www.linuks.mine.nu 1580 string SplineFontDB: Spline Font Database 159!:mime application/vnd.font-fontforge-sfd 160>14 string x version %s 161 162# EOT 1630x40 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) 1720 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/ 1840 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/ 1890 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 194