View Single Post
Old 11-22-2013, 08:48 AM   #80
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,029
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by kovidgoyal View Post
Change the mimetype in the opf from application/x-font-ttf to application/x-font-truetype and the font files will be recognized.
I did and Sigil now complains (for every entry):
The <item> element's "media-type" attribute has value "application/x-font-truetype", but the file's media type is "application/x-font-ttf".

According your answer I can assume Sigil is wrong for this notification?

BTW: The font files are now indeed correctly recognized by calibre.

Googeling, I found this which might explain Sigil behavior:

Apparently ISO/IEC JTC 1/SC34 are working on a new font top-level metatype. But on
the other hand they also recognize "application/x-font-ttf" as being the
experimental (read: not standardized) de facto MIME type for Truetype fonts.
Number of Google hits for all three possibilities:
"application/x-truetype-font" 2100
"application/x-font-truetype" 4100
"application/x-font-ttf" 45900

So "application/x-font-ttf" it is. It beats the other two by an order of magnitude. I know it's not an *official* standard, but it is a de facto one, and even ISO/IEC JTC 1/SC34 recognizes it. So it should probably be enforced as an industry best practice.

Last edited by DrChiper; 11-22-2013 at 08:59 AM.
DrChiper is offline