1 2#------------------------------------------------------------------------------ 3# $File: fonts,v 1.30 2016/03/22 22:27:47 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# X11 font files in SNF (Server Natural Format) format 19# updated by Joerg Jenderek at Feb 2013 20# http://computer-programming-forum.com/51-perl/8f22fb96d2e34bab.htm 210 belong 00000004 X11 SNF font data, MSB first 22#>104 belong 00000004 X11 SNF font data, MSB first 23!:mime application/x-font-sfn 24# GRR: line below too general as it catches also Xbase index file t3-CHAR.NDX 250 lelong 00000004 26>104 lelong 00000004 X11 SNF font data, LSB first 27!:mime application/x-font-sfn 28 29# X11 Bitmap Distribution Format, from Daniel Quinlan (quinlan@yggdrasil.com) 300 search/1 STARTFONT\ X11 BDF font text 31 32# From: Joerg Jenderek 33# URL: http://grub.gibibit.com/New_font_format 34# Reference: util/grub-mkfont.c 35# include/grub/fontformat.h 36# FONT_FORMAT_SECTION_NAMES_FILE 370 string FILE 38# FONT_FORMAT_PFF2_MAGIC 39>8 string PFF2 40# leng 4 only at the moment 41>>4 ubelong 4 42# FONT_FORMAT_SECTION_NAMES_FONT_NAME 43>>>12 string NAME GRUB2 font 44!:mime application/x-font-pf2 45!:ext pf2 46# length of font_name 47>>>>16 ubelong >0 48# font_name 49>>>>>20 string >\0 "%-s" 50 51# X11 fonts, from Daniel Quinlan (quinlan@yggdrasil.com) 52# PCF must come before SGI additions ("MIPSEL MIPS-II COFF" collides) 530 string \001fcp X11 Portable Compiled Font data 54>12 byte 0x02 \b, LSB first 55>12 byte 0x0a \b, MSB first 560 string D1.0\015 X11 Speedo font data 57 58#------------------------------------------------------------------------------ 59# FIGlet fonts and controlfiles 60# From figmagic supplied with Figlet version 2.2 61# "David E. O'Brien" <obrien@FreeBSD.ORG> 620 string flf FIGlet font 63>3 string >2a version %-2.2s 640 string flc FIGlet controlfile 65>3 string >2a version %-2.2s 66 67# libGrx graphics lib fonts, from Albert Cahalan (acahalan@cs.uml.edu) 68# Used with djgpp (DOS Gnu C++), sometimes Linux or Turbo C++ 690 belong 0x14025919 libGrx font data, 70>8 leshort x %dx 71>10 leshort x \b%d 72>40 string x %s 73# Misc. DOS VGA fonts, from Albert Cahalan (acahalan@cs.uml.edu) 740 belong 0xff464f4e DOS code page font data collection 757 belong 0x00454741 DOS code page font data 767 belong 0x00564944 DOS code page font data (from Linux?) 774098 string DOSFONT DOSFONT2 encrypted font data 78 79# downloadable fonts for browser (prints type) anthon@mnt.org 80# https://tools.ietf.org/html/rfc3073 810 string PFR1 Portable Font Resource font data (new) 82>102 string >0 \b: %s 830 string PFR0 Portable Font Resource font data (old) 84>4 beshort >0 version %d 85 86# True Type fonts 870 string \000\001\000\000\000 TrueType font data 88!:mime application/x-font-ttf 89 900 string \007\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font 910 string \012\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font 92 93# TrueType/OpenType font collections (.ttc) 94# http://www.microsoft.com/typography/otspec/otff.htm 950 string ttcf TrueType font collection data 96>4 belong 0x00010000 \b, 1.0 97>>8 belong >0 \b, %d fonts 98>4 belong 0x00020000 \b, 2.0 99>>8 belong >0 \b, %d fonts 100# 0x44454947 = 'DSIG' 101>>>16 belong 0x44534947 \b, digitally signed 102 103# Opentype font data from Avi Bercovich 1040 string OTTO OpenType font data 105!:mime application/vnd.ms-opentype 106 107# Gurkan Sengun <gurkan@linuks.mine.nu>, www.linuks.mine.nu 1080 string SplineFontDB: Spline Font Database 109!:mime application/vnd.font-fontforge-sfd 110>14 string x version %s 111 112# EOT 11334 string LP Embedded OpenType (EOT) 114!:mime application/vnd.ms-fontobject 115 116# Web Open Font Format (.woff) 1170 name woff 118>4 belong 0x00010000 \b, TrueType 119>4 belong 0x4F54544F \b, CFF 120>4 belong 0x74727565 \b, TrueType 121>4 default x 122>>4 belong x \b, flavor %d 123>8 belong x \b, length %d 124#>12 beshort x \b, numTables %d 125#>14 beshort x \b, reserved %d 126#>16 belong x \b, totalSfntSize %d 127 128# http://www.w3.org/TR/WOFF/ 1290 string wOFF Web Open Font Format 130>0 use woff 131>20 beshort x \b, version %d 132>22 beshort x \b.%d 133# http://www.w3.org/TR/WOFF2/ 1340 string wOF2 Web Open Font Format (Version 2) 135>0 use woff 136#>20 belong x \b, totalCompressedSize %d 137>24 beshort x \b, version %d 138>26 beshort x \b.%d 139