summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-01-31 14:24:08 +0000
committerBastien Nocera <hadess@hadess.net>2008-01-31 14:24:08 +0000
commit34233096a536aac43ad5ff0a2c6a5f0e131f2bb1 (patch)
tree2a6fadb7da873f2741a4044b251558dbd9beb917
parent1e655d9d01b083ef19c08f38963013412badca26 (diff)
downloadshared-mime-info-34233096a536aac43ad5ff0a2c6a5f0e131f2bb1.tar.gz
2008-01-31 Bastien Nocera <hadess@hadess.net>
* freedesktop.org.xml.in: * tests/list: * tests/test.ttx: Patch from Christian Persch <chpe@gnome.org> to add the TTX font mime-type (Closes: #14318)
-rw-r--r--ChangeLog7
-rw-r--r--freedesktop.org.xml.in8
-rw-r--r--tests/list3
-rw-r--r--tests/test.ttx8
4 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 578fc7e2..fd9f62c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-31 Bastien Nocera <hadess@hadess.net>
+
+ * freedesktop.org.xml.in:
+ * tests/list:
+ * tests/test.ttx: Patch from Christian Persch
+ <chpe@gnome.org> to add the TTX font mime-type (Closes: #14318)
+
2008-01-29 Bastien Nocera <hadess@hadess.net>
* freedesktop.org.xml.in: Patch from Paolo Borelli
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 3652b55b..d3818262 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -1258,6 +1258,14 @@ command to generate the output files.
<glob pattern="*.ttf"/>
<glob pattern="*.ttc"/>
</mime-type>
+ <mime-type type="application/x-font-ttx">
+ <sub-class-of type="text/xml"/>
+ <_comment>TrueType XML font</_comment>
+ <magic priority="50">
+ <match type="string" value="&lt;ttFont sfntVersion=&quot;\\x00\\x01\\x00\\x00&quot; ttLibVersion=&quot;" offset="0:256"/>
+ </magic>
+ <glob pattern="*.ttx"/>
+ </mime-type>
<mime-type type="application/x-font-vfont">
<_comment>V font</_comment>
<magic priority="50">
diff --git a/tests/list b/tests/list
index 52d86050..536d1b56 100644
--- a/tests/list
+++ b/tests/list
@@ -62,6 +62,9 @@ subtitle.ssa text/x-ssa
text-iso8859-15.txt text/plain ox
text-utf8.txt text/plain ox
+# xml subtypes
+test.ttx application/x-font-ttx
+
# other
text.pdf application/pdf
project.glade application/x-glade
diff --git a/tests/test.ttx b/tests/test.ttx
new file mode 100644
index 00000000..b8b99b21
--- /dev/null
+++ b/tests/test.ttx
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.0b1">
+
+ <GlyphOrder>
+ <GlyphID id="0" name=".notdef"/>
+ </GlyphOrder>
+
+</ttFont>