]> granicus.if.org Git - file/commitdiff
PR/516: Henk: Add WOF2 magic.
authorChristos Zoulas <christos@zoulas.com>
Mon, 8 Feb 2016 17:06:40 +0000 (17:06 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 8 Feb 2016 17:06:40 +0000 (17:06 +0000)
magic/Magdir/fonts

index f5b0590bfff0be74b0ef8b9c2d75a9c412c1ef69..1b103e223f33fe4d917e8deac124a803893f23bb 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: fonts,v 1.28 2015/10/29 18:52:16 christos Exp $
+# $File: fonts,v 1.29 2016/02/08 17:06:40 christos Exp $
 # fonts:  file(1) magic for font data
 #
 0      search/1        FONT            ASCII vfont text
 !:mime application/vnd.ms-fontobject
 
 # Web Open Font Format (.woff)
+0      name            woff
+>4     belong          0x00010000      \b, TrueType
+>4     belong          0x4F54544F      \b, CFF
+>4     belong          0x74727565      \b, TrueType
+>4     default         x
+>>4    belong          x               \b, flavor %d
+>8     belong          x               \b, length %d
+#>12   beshort         x               \b, numTables %d
+#>14   beshort         x               \b, reserved %d
+#>16   belong          x               \b, totalSfntSize %d
+
 # http://www.w3.org/TR/WOFF/
 0      string          wOFF    Web Open Font Format
->4     belong          x       \b, flavor %d
->8     belong          x       \b, length %d
+>0     use             woff
 >20    beshort         x       \b, version %d
 >22    beshort         x       \b.%d
+# http://www.w3.org/TR/WOFF2/
+0      string          wOF2    Web Open Font Format (Version 2)
+>0     use             woff
+#>20   belong          x       \b, totalCompressedSize %d
+>24    beshort         x       \b, version %d
+>26    beshort         x       \b.%d