06-07-2013, 11:02 AM | #1 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Custom font will not show on device
Hi all
I wonder if I could get some advice again. The problem is driving me crazy. It is to do with custom fonts in my file not displaying on the Kindle Fire. I have created an epub file (for later conversion to Kindle). Custom fonts work fine as an epub. When I run the epub into the desktop Kindle Previewer, again the custom fonts display fine. However, when I load the mobi file that is churned out by the previewer, onto my Kindle Fire, it has reverted to default fonts. Does anyone have any advice on what I should check for, or what might be the reason for this? Thanks in advance Dan |
06-07-2013, 11:49 AM | #2 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The Kindle Fire actively tries to thwart any attempts to dictate the font used for the normal text of a book. Because dictating that font has the side-effect of disabling a reader's ability to choose their own preferred reading font. An ability Amazon's research indicates their customers value.
So if you used the normal epub method of assigning the font-family to the "body" element using css, the Fire (at least the newer HDs) will ignore it. Regardless of how it looks in the previewer. You can jump through hoops and assign the font-face attribute to different elements/classes to achieve what you want, but as mentioned, you then thwart the user's ability to choose for themselves. You really should consider not doing it all. Nothing wrong with including fonts for headings and other special text; that will still work fine, but unless it's just for your own personal use, you should probably accept the fact that readers like being able to choose their own font for reading. |
Advert | |
|
06-07-2013, 11:53 AM | #3 |
Resident Curmudgeon
Posts: 76,448
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The best solution is to install Aldiko on your Fire and read the ePub as is and the embedded fonts will work and then you won't have to convert.
|
06-07-2013, 12:00 PM | #4 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Many thanks both
It is just the headers that I really want to use custom fonts for. I'm happy to leave the choice of body font up to the user. I just wondered if you knew of any technical reason why they wouldn't be showing up? To explain further, I have one file that works fine on the Fire when converted and displays custom fonts, and I have another that doesn't. I can't find any difference between the two in terms of coding or the internal structure of the file. One obvious difference is that the one that works uses Truetype, and the one that doesn't uses Opentype. Could this be anything to do with it? |
06-07-2013, 12:32 PM | #5 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's possible there's an issue with the fonts themselves, but not likely if they work in the epub. Not really much use in speculating without seeing the html and the css ... or better yet, a small sample epub that exhibits the behavior when converted (as long as the font-license allows free distribution).
|
Advert | |
|
06-07-2013, 12:50 PM | #6 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Cheers!
Here is a sample file which displays the problem. Is is the font Brandon Grotesque, that is not working. Any advice would be gratefully received! Thanks |
06-07-2013, 01:23 PM | #7 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It may be later this afternoon (Eastern), but I'll be happy to give it a looksee.
|
06-07-2013, 01:29 PM | #8 |
Enthusiast
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
|
I would guess that you have Adobe font obfuscation turned on. Try turning that off and you should get a file that will work. However, expect Kindlegen to complain about the font being a type 1 Postscript font.
|
06-07-2013, 06:04 PM | #9 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Indeed. As William guessed, those fonts are obfuscated in the epub. You can't feed obfuscated fonts to Kindlegen/Previewer. They must be unobfuscated (Amazon will add their own font obfuscation to all embedded fonts). You must either tell InDesign not to obfuscate the fonts (if that's what you're using), or use Sigil to right click on the font files and remove the obfuscation. Just make sure that you're legally ALLOWED to distribute those fonts before-hand.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Install custom font on 5.2? | Barty | Kindle Developer's Corner | 14 | 11-29-2012 03:25 AM |
Font does not show up on IPad | ralphiedee | ePub | 6 | 06-09-2012 02:37 PM |
Font does not show up on IPad | ralphiedee | Apple Devices | 0 | 06-07-2012 07:44 PM |
Kindle: Show ebook reading status in custom column | AndyW1691 | Library Management | 0 | 01-22-2012 05:40 PM |
Hacks Best custom font? | robollama | Amazon Kindle | 7 | 05-01-2011 08:33 PM |