I have designed and coded websites for the last 5 years, so I am very familiar with HTML and CSS, probably having 5000 hours of working directly with coding. I think I generally know what I am doing.
I have published four separate books but they are each having the same issue: the embedded fonts are not showing up.
The custom fonts are being removed in the KDP conversion to .mobi format.
Here's the system I have used so far.
The original book was created in the latest Mac Pages on near new macbook running latest system software OSX 10.9.4.
Exported by Pages to calibre, latest version.
I spent some time getting rid of all the class and span junk from the CSS, simplifying it down to fewer classes. (The indent, center, sup, etc, work perfectly.)
Custom font, Oswald uploaded.
Added to manifest.
added font-face to book.CSS
added to the page
Looks correct in Calibre .epub version.
Validates in Calibre.
Looks correct in .mobi exported to Kindle desktop viewer.
Even even looks correct in KDP online previewer after uploading to Kindle Direct Publishing interface.
Actually looks fantastic.
When it goes through the KDP system and appears in the Kindle store, the css colour is still there but the font has reverted and the size is not correct, ie, is massively larger.
I have tried uploading .mobi created using Kindle previewer desktop app and they look good as well, but the same result.
I have contacted KDP with this specific question but they have said
So I have actually had them reply that Kindle does not (generally) allow custom fonts. That can't be right, surely Kindle supports custom fonts.
Could someone please tell me where did my approach go wrong?
I've looked at other people's ebooks with embedded fonts, etc, they seem to be able to do it easy enough and after so much effort writing, designing, etc, it's frustrating.
I have published four separate books but they are each having the same issue: the embedded fonts are not showing up.
The custom fonts are being removed in the KDP conversion to .mobi format.
Here's the system I have used so far.
The original book was created in the latest Mac Pages on near new macbook running latest system software OSX 10.9.4.
Exported by Pages to calibre, latest version.
I spent some time getting rid of all the class and span junk from the CSS, simplifying it down to fewer classes. (The indent, center, sup, etc, work perfectly.)
Custom font, Oswald uploaded.
Added to manifest.
Quote:
<item href="Fonts/Oswald-Regular.otf" id="Oswald-Regular.otf" media-type="application/vnd.ms-opentype"/> |
Quote:
@font-face { font-family: "Oswald"; font-style: normal; font-weight: normal; src: url(../Fonts/Oswald-Regular.otf); } h1 { color: #6EC038; font-family: "Oswald"; font-size: 112.5%; margin: 0; padding: 0; text-align: center; text-indent: 0%; } .title { color: #6EC038; font-family: "Oswald"; font-size: 112.5%; text-align: center; text-indent: 0%; } |
Quote:
<h1 class="title">Day 1 | Port William Hut: almost feels like home</h1> |
Validates in Calibre.
Looks correct in .mobi exported to Kindle desktop viewer.
Even even looks correct in KDP online previewer after uploading to Kindle Direct Publishing interface.
Actually looks fantastic.
When it goes through the KDP system and appears in the Kindle store, the css colour is still there but the font has reverted and the size is not correct, ie, is massively larger.
I have tried uploading .mobi created using Kindle previewer desktop app and they look good as well, but the same result.
I have contacted KDP with this specific question but they have said
Quote:
Hello, Generally Kindle does not support customized font. During conversion any font is converted to the Kindle compatible style and size. In order to ensure that specified or embedded fonts convert as expected, be sure to follow the directions for customizing font in Section 3.1.9 of the Kindle Publishing Guidelines: http://kindlegen.s3.amazonaws.com/Am...Guidelines.pdf Please note this is an advanced content feature that may require you to submit content as an ePub or HTML. If these guidelines are not followed, Kindle devices may display your book using default device fonts to ensure readers are able to modify their reading preferences. |
Could someone please tell me where did my approach go wrong?
I've looked at other people's ebooks with embedded fonts, etc, they seem to be able to do it easy enough and after so much effort writing, designing, etc, it's frustrating.