Bug 14318

Summary: add mime type for .ttx files
Product: shared-mime-info Reporter: Christian Persch (GNOME) <chpe>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: bugzilla
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: proposed patch
updated patch

Description Christian Persch (GNOME) 2008-01-31 05:51:59 UTC
Created attachment 14053 [details] [review]
proposed patch

TTX files are a subtype of text/xml, produced by fonttool [http://sourceforge.net/projects/fonttools/]. I was unable to find a preexisting mime type for it anywhere, so I chose application/x-font-ttx in analogy to x-font-ttf.

They seem to always start like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.0b1">

but I guess a "*.ttx" glob pattern is enough to recognise them.
Comment 1 Bastien Nocera 2008-01-31 05:58:46 UTC
It would need a magic, otherwise by data, it's going to be an XML file, and a test file, so we can add it to the test suite.
Comment 2 Christian Persch (GNOME) 2008-01-31 06:19:16 UTC
Created attachment 14054 [details]
updated patch

Add magic pattern, and a test file.
Comment 3 Bastien Nocera 2008-01-31 06:24:26 UTC
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)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.