View Single Post
Old 11-02-2019, 04:29 AM   #4
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,232
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Azdaema View Post
My reader is the iBooks app on my iphone. Are you saying that even a completely properly embedded font will still not show up on some readers?
For iOS, you need an extra step when producing your epub file.

For epub2:

You need to add this file to the META-INF directory:
Code:
com.apple.ibooks.display-options.xml
The contents of the file:
Spoiler:

<?xml version='1.0' encoding='utf-8'?>
<display_options>
<platform name="*">
<option name="specified-fonts">true</option>
</platform>
</display_options>


For epub3:
On the opf file, add the ibooks prefix to the <package> element:
Code:
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="isbn-id" prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/ a11y: http://www.idpf.org/epub/vocab/package/a11y/#" xml:lang="pt-BR">
Then, add a <meta> element inside the <metadata> element, like this:
Code:
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
    ...
    <meta name="cover" content="cover.jpg"/>
    <meta property="ibooks:specified-fonts">true</meta>
    ...
</metadata>
Of course, this sucks. Embedded fonts should work properly on iOS without this platform-specific property/file added.
thiago.eec is offline   Reply With Quote