Bug 14318 - add mime type for .ttx files
Summary: add mime type for .ttx files
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-31 05:51 UTC by Christian Persch (GNOME)
Modified: 2008-01-31 06:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
proposed patch (779 bytes, patch)
2008-01-31 05:51 UTC, Christian Persch (GNOME)
Details | Splinter Review
updated patch (1.84 KB, application/octet-stream)
2008-01-31 06:19 UTC, Christian Persch (GNOME)
Details

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.