bitemyapp / flightcrew

Automatically exported from code.google.com/p/flightcrew
GNU General Public License v3.0
0 stars 0 forks source link

Media-type for TrueType fonts? #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've got this message:

error 1107: The <item> element's "media-type" attribute has value 
"application/x-truetype-font", but the file's media type is 
"application/x-font-ttf"

Because I've used media-type="application/x-truetype-font" for an embedded 
TrueType font. As far as I know, there is no fixed standard media-type for TTF 
fonts, and the ePUB spec certainly doesn't mention it. Could FlightCrew allow 
"application/x-truetype-font" for TTF files or is there something else I'm not 
aware of?

Original issue reported on code.google.com by jel...@gmail.com on 3 Oct 2010 at 9:43

GoogleCodeExporter commented 8 years ago
I expected this report as well. :)

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.

Original comment by Strahinja.Markovic@gmail.com on 3 Oct 2010 at 9:52

GoogleCodeExporter commented 8 years ago
But need it be an error? Can't it be just a warning? :)

Original comment by jel...@gmail.com on 3 Oct 2010 at 9:58

GoogleCodeExporter commented 8 years ago
Making it a warning would require special-casing this particular mimetype. 
Besides, I think it should be an error. If the ISO/IEC JTC 1/SC34 recognizes it 
as the "unofficial" standard and it's an order of magnitude more used than the 
next contender, it's the mime that should be used.

Original comment by Strahinja.Markovic@gmail.com on 5 Oct 2010 at 10:00

GoogleCodeExporter commented 8 years ago
I am using Indesign to generate ePub. In the resource file all TTF fonts are 
listed with the "application/vnd.ms-opentype" media type, but only the "Times 
New Roman" font generates an error from FLight Crew.

I changed the property for the items listed and  now there are no more errors.

Does this mean that the remainin TTF fonts are of type "Opentype" or is the 
validator omitting an error for some reasons?

Thanks for a great product, Rolf

Original comment by RolfJack...@gmail.com on 30 Nov 2012 at 1:27