View Single Post
Old 10-18-2014, 10:22 PM   #106
Tony_A20
Enthusiast
Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.Tony_A20 knows what's going on.
 
Tony_A20's Avatar
 
Posts: 39
Karma: 25000
Join Date: Dec 2009
Device: Kindle 3
Quote:
Originally Posted by Peter Ahlstrom View Post
I had a weird error with KDP and font embedding yesterday. KDP reencoded the fonts (that I was using for headings) and stripped out unused letters—except some of the "unused" letters were actually used on an html file toward the end of the ebook, and viewing the Paperwhite view in Kindle Previewer had those letters replaced with a default font. It looked terrible. (On the Kindle Fire preview pages, it was loading the font from my computer, so the error wasn't visible.)

I fixed this by making a "display:hidden" paragraph on the title page of the book that used all of those letters. Now the previously missing letters are embedded correctly and displayed fine on that late html file. The only letters that are missing from the embedded fonts now are the ones that are actually not used in the book.

Before I got this error, my fonts were refusing to embed at all (after running through KDP; kindlegen embedded them fine). I fixed that error by following the advice earlier in this thread: explicitly classing any tag that used an embedded font and getting rid of multiple-classed tags.
That seems like a good trick to use in a pre-emptive manner. I've added a single line paragraph of the upper and lower case alphabet for each of the two embedded fonts I'm using.

<p class="font1" style="display: none;">abcdefghijklmnopqrstuvwxyz…etc</p>

I haven't tried to upload through KDP yet, but with Hitch's warnings ringing in my ears I think your fix is something to use. Thanks.

Tony

Last edited by Tony_A20; 10-19-2014 at 09:21 AM.
Tony_A20 is offline   Reply With Quote