Bug 194563 - OTF font file with "otf" extension is recognized as OOo template instead (was: "filedialog filter error for otf fonts")
Summary: OTF font file with "otf" extension is recognized as OOo template instead (was...
Status: RESOLVED UPSTREAM
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 206913 225317 226061 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-29 17:08 UTC by Grissiom
Modified: 2010-02-10 16:27 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grissiom 2009-05-29 17:08:05 UTC
Version:            (using KDE 4.2.3)
Installed from:    Slackware Packages

In KDE4.2.3, I choose "All supported formats" and explore to the folder that hold my otf fonts, there is nothing on display. I have to manually type the file name to install. So the filter is error.
Comment 1 Dario Andres 2009-05-29 17:36:09 UTC
Do you mean in the font selector module inside SystemSettings? Anyways it should be a filedialog bug
Thanks
Comment 2 Grissiom 2009-05-30 03:55:05 UTC
Yes, it's the file select dialog.
Comment 3 Dario Andres 2009-06-16 00:24:43 UTC
Just confirm you are having this problem on the Font Installer module on SystemSettings.. Is that right ?
Thanks
Comment 4 Grissiom 2009-06-16 01:54:35 UTC
(In reply to comment #3)
> Just confirm you are having this problem on the Font Installer module on
> SystemSettings.. Is that right ?
> Thanks

Yes, you are right. Bug still in KDE4.2.4

Thanks
Comment 5 Dario Andres 2009-07-15 15:55:55 UTC
Here using:

Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76
        Date:   Fri Jun 26 13:45:37 2009 +0200)
KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))
kdelibs svn rev. 996016 / kdebase svn rev. 996016
on ArchLinux i686 - Kernel 2.6.30

I can reproduce the bug. I just downloaded a foobar.otf font and it wasn't recognized by the Font Installer kcm.

I checked the mimetype discovered by "kmimetypefinder", and it was "application/vnd.oasis.opendocument.formula-template"

Then I renamed the "foobar.otf" file to "a" and "kmimetypefinder" found the mime properly: "application/x-font-otf" (and that file was indeed shown in the Font Installer kcm AddFontsDialog)

So, this is a Kde Mime bug.
Comment 6 Oliver Henshaw 2009-07-15 16:49:37 UTC
I see this (with KDE 4.2 on Fedora 11.)  I'll add that:

$ xdg-mime query filetype blah.otf
application/x-font-otf
$ file blah.otf
blah.otf: OpenType font data
Comment 7 Dario Andres 2009-07-15 16:53:32 UTC
@Olivier: what is your output for "kmimetypefinder blah.otf" ?
Comment 8 Oliver Henshaw 2009-07-15 17:06:50 UTC
Sorry, I didn't mention it because it was the same as in comment #5.

$ kmimetypefinder blah.otf
application/vnd.oasis.opendocument.formula-template               
(accuracy 100)

Packages:

kdebase-runtime-4.2.4-2.fc11.i586
xdg-utils-1.0.2-8.20081121cvs.fc11.noarch
file-5.03-2.fc11.i586
Comment 9 David Faure 2009-08-20 18:55:29 UTC
This was fixed in shared-mime-info on 2009-07-31.

https://bugs.freedesktop.org/show_bug.cgi?id=20854

The fix will be released in whatever the next release of shared-mime-info is after 0.60, I guess it will be called 0.70.

And I confirm that it works. kmimetypefinder doesnotexist.otf still says openformula, but accuracy 20, and kmimetypefinder real_opentype_font.otf says application/x-font-otf (accuracy 100).
Comment 10 Dario Andres 2009-09-12 17:58:57 UTC
*** Bug 206913 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2010-02-02 23:35:07 UTC
*** Bug 225317 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2010-02-10 16:27:27 UTC
*** Bug 226061 has been marked as a duplicate of this bug. ***