View Single Post
Old 11-26-2013, 03:48 AM   #7
gdutoit
Member
gdutoit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: ipad
Quote:
Originally Posted by DomesticExtremis View Post
I think the problem is iPad (or iBooks generally).
Assuming you have all the fonts setup in xhtml/css correctly for epub,
you need to add a magic incantaion to you epub to force the ipad to
use the embedded font.
You will need a file called com.apple.ibooks.dispaly-options.xml,
containing the following:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<display_options>
<platform name="*">
	<option name="specified-fonts">true</option>
	</platform>
</display_options>
It needs to be placed in the META-INF directory within the epub.

The Calibre tweak book feature is the best way to to this.
Explode the book and copy the file in place. Rebuild the book.

Calibre also contains a half decent epub viewer which means you
can check your book looks ok on devices other than iPad (most of the
market).
Thank you very much for your specific advice and sample file. I gave it a try and, after uninstalling the font from my computer, the font displays correctly on Calibre and ADE, but it still doesn't display in ibooks on the iphone or ipad.

(Curiously, when the file is opened and saved in Sigil, com.apple.ibooks.dispaly-options.xml is deleted from the META-INF folder.)

Thanks also for pointing out Caliber's Tweak Book feature to me — I'd never noticed it before, and it certainly makes exploding and rebuilding painless.

In case you want to have a look, I've made a small sample epub (17 kB).
gdutoit is offline   Reply With Quote