]> granicus.if.org Git - file/commitdiff
Recognize GRUB2 fonts (Joerg Jenderek)
authorChristos Zoulas <christos@zoulas.com>
Tue, 22 Mar 2016 22:27:47 +0000 (22:27 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 22 Mar 2016 22:27:47 +0000 (22:27 +0000)
magic/Magdir/fonts

index 1b103e223f33fe4d917e8deac124a803893f23bb..41899fb0257b315e04977af0c10cf90093a0581f 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: fonts,v 1.29 2016/02/08 17:06:40 christos Exp $
+# $File: fonts,v 1.30 2016/03/22 22:27:47 christos Exp $
 # fonts:  file(1) magic for font data
 #
 0      search/1        FONT            ASCII vfont text
 # X11 Bitmap Distribution Format, from Daniel Quinlan (quinlan@yggdrasil.com)
 0      search/1        STARTFONT\              X11 BDF font text
 
+# From: Joerg Jenderek
+# URL: http://grub.gibibit.com/New_font_format
+# Reference: util/grub-mkfont.c
+#              include/grub/fontformat.h 
+# FONT_FORMAT_SECTION_NAMES_FILE
+0                      string          FILE            
+# FONT_FORMAT_PFF2_MAGIC
+>8                     string          PFF2            
+# leng 4 only at the moment
+>>4                    ubelong         4               
+# FONT_FORMAT_SECTION_NAMES_FONT_NAME
+>>>12                  string          NAME            GRUB2 font
+!:mime                 application/x-font-pf2
+!:ext                  pf2
+# length of font_name
+>>>>16                 ubelong         >0              
+# font_name
+>>>>>20                        string          >\0             "%-s"
+
 # X11 fonts, from Daniel Quinlan (quinlan@yggdrasil.com)
 # PCF must come before SGI additions ("MIPSEL MIPS-II COFF" collides)
 0      string          \001fcp                 X11 Portable Compiled Font data