06-13-2023, 08:21 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2023
Device: Kindle
|
Font MIME type does not match extension
Hello,
I am editing an ebook in epub format, which contains an embedded font (Noto Nastaliq Urdu https://fonts.google.com/noto/specim...+Nastaliq+Urdu) When importing the ebook into Calibre, then using "Edit", and the the useful "Check Book" utility, I get the following warning: "The file OEBPS/Fonts/NotoNastaliqUrdu_VariableFont_whgt.ttf has a MIME type that does not match its extension" What does that error mean, and how can I correct it? I saw some related comments here: https://bugs.launchpad.net/calibre/+bug/2023646 but I don't understand what to do. Any comment, please? The book seems to work well, but I am curious about that error. |
06-13-2023, 08:51 PM | #2 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The right side of the debugger offer solutions for many SELECTED error messages. Select the error on the left: pick the solution on the right
Personally, I avoid Fix All until I have reviewed and corrected ones like you saw. Most common Fix all is bad ID, usually the last FIX I do |
06-15-2023, 11:55 AM | #3 |
Evangelist
Posts: 417
Karma: 6913952
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
My guess is that the mime type for the font in the manifest is "font/otf", which means an OpenType font, while Check Book expects that a .ttf extension would require a mime type of "font/ttf", meaning a TrueType font. It's an exceedingly minor nitpick and won't make any difference, because OpenType is pretty much a proper superset of TrueType, and the same rendering engine is used for both in every implementation.
I've seen fonts from commercial foundries where the file extension doesn't match the actual contents, and it goes both ways (TrueType in a .otf and OpenType in a .ttf). Changing the extension to .otf and setting the mime type to "font/otf" wouldn't hurt anything, even if the font really is a TrueType font, and it should fix your error. |
06-15-2023, 02:36 PM | #4 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The calibre error checker will notice that the mine type is incorrect for the font and allow you to auto-fix it. Done!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What font are you using for what type of book? | NiMa | General Discussions | 115 | 03-18-2022 06:38 PM |
MIME type for Nook? | angharad09 | ePub | 9 | 08-27-2020 05:39 PM |
CC Not Opening Files on Nook (Unsupported Mime Type) | melissasusan | Calibre Companion | 14 | 08-20-2020 08:20 PM |
On The MIME Type of ePUBs | baskerville | Kobo Developer's Corner | 0 | 06-12-2018 06:22 AM |
.MOBI Mime Type | NicWest | Kindle Formats | 1 | 11-12-2010 06:42 PM |