Bug 20854 - OTF is a font format
Summary: OTF is a font format
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
: 20603 (view as bug list)
Depends on:
Reported: 2009-03-25 01:50 UTC by Nicolas Mailhot
Modified: 2009-07-31 08:13 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Description Nicolas Mailhot 2009-03-25 01:50:51 UTC
The gnome mime database thinks OTF files are some kind of ODF file (as
documented in the ODF spec).

However the OTF extension has long been used for OpenType fonts with CFF data,
and it's easy to check font OTF files massively outnumber ODF OTF files in the wild (and are likely to continue as OTF is used for pretty much every new font nowadays)

Therefore the default should be switched to font file.

Even OO.o uses the OTF moniker for font files
Comment 1 Nicolas Mailhot 2009-03-25 01:52:20 UTC
(for example I count ~ 30 packages including one or many OTF font files in Fedora, and none including ODF OTF files)
Comment 2 Bastien Nocera 2009-04-20 09:31:42 UTC
All the mime-types associated with *.otf have magic data associated, so front-ends should be able to detect which is which by using magic in case of conflict.

Adding weight for one or the other would cause more problems than it would solve. So file a bug against the applications that fail to detect the files correctly instead.
Comment 3 Bastien Nocera 2009-04-20 09:51:59 UTC
*** Bug 20603 has been marked as a duplicate of this bug. ***
Comment 4 Brian Burger 2009-05-01 03:19:32 UTC

Over on Launchpad, Seb Bacher is saying this isn't a Nautilus/file-handling bug.

Over here, it's not a mime-type bug.

It's got to be one or the other. So which is it?
Comment 5 Brian Burger 2009-05-01 03:22:15 UTC
Copypasta from one of my comments on the Launchpad bug:

This is not a problem with the current Gnome Font Viewer, as is easily proven:
1. Find an OTF font file on your system.
2. If you just double-click on it, OpenOffice attempts to open it, and fails.
2. Right-click the OTF, go Open With -> Open With Other Application -> Font Viewer
3. Font Viewer opens and displays the OTF preview just as it should, exactly like a TTF is shown.

So I'm not sure how this bug can be Invalid against all three of the targets currently listed. It's should be valid against at least one, if not all.

(The above was all done on Ubuntu 9.04)
Comment 6 Bastien Nocera 2009-05-01 05:00:31 UTC
It is a bug in the file managers. File a bug against them.
Comment 7 Matthias Clasen 2009-06-08 08:08:43 UTC

we need to add a glob for *.otf to the font mime type too, since the current agreed-on matching algorithm only looks at magic to disambiguate if there is a glob conflict.

I tested locally that adding the glob makes otf fonts show up correctly in nautilus.
Comment 8 Bastien Nocera 2009-07-31 08:13:51 UTC
* freedesktop.org.xml.in: Add *.otf as a glob for
OpenType fonts so file managers use magic to check
for fonts vs. OO.o documents (Closes: #20854)

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.