![]() |
#1 | |
Scripler Project Lead
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
|
![]()
I’ve written a comprehensive DIY guide to using and embedding fonts in epubs. You might find it useful:
Quote:
Last edited by Abekonge; 05-16-2014 at 05:06 AM. |
|
![]() |
![]() |
![]() |
#2 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
You're missing one part when embedding fonts in iBooks:
Adding meta property: Quote:
Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Scripler Project Lead
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
|
You are correct that it can be done that way. But fonts are working in iBooks with this guide, I'm obtaining the same effect adding specified fonts true to the file com.apple.ibooks.display-options.xml to the META-INF folder.
That is the older way, but I don't know of any differences. Do you? |
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
From Liz Castro's blog (http://www.pigsgourdsandwikis.com/2012/11/versioning-in-ibooks-3.html)
Quote:
Code:
prefix="rendition: http://www.idpf.org/vocab/rendition/# ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/" Code:
<meta property="ibooks:iphone-orientation-lock">none</meta> <meta property="ibooks:ipad-orientation-lock">none</meta> <meta property="ibooks:binding">false</meta> <meta property="rendition:layout">pre-paginated</meta> <meta property="rendition:spread">auto</meta> <meta property="rendition:orientation">auto</meta> Last edited by odedta; 05-16-2014 at 04:26 PM. |
|
![]() |
![]() |
![]() |
#5 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Using the Calibre's Editor, I just open this new file: com.apple.ibooks.display-options.xml
This file contains: Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
If you plan to move with the times and conform to the ePub3 standard, then do NOT add the above file at all.
In any case, for maximum compatibility I always do both just in case there is absolutely no harm done by doing so, it passes validation and the files works as intended. |
![]() |
![]() |
![]() |
#7 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Okay, I'm willing to move with the times, although I don't use epub3.
So you're saying you include the com.apple.ibooks.display-options.xml, and also prefix="rendition: http://www.idpf.org/vocab/rendition/# ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/" Where and how do you add the latter? I'm new to all of this, so please explain to me as you would a twelve year old. |
![]() |
![]() |
![]() |
#8 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
For some meta tags such as:
Code:
<meta property="ibooks:iphone-orientation-lock">none</meta> <meta property="ibooks:ipad-orientation-lock">none</meta> Quote:
If you are working with Fixed-Layout ePubs you will have to use the meta tags: Code:
<meta property="rendition:layout">pre-paginated</meta> <meta property="rendition:orientation">portrait</meta> <meta property="rendition:spread">landscape</meta> Quote:
Now, if you have both fixed layout and embedded fonts the correct form of declaring the package prefixes are as follows: Quote:
Everything I said so far is ePub 3 standards requirements. In order to be backwards compatible, meaning, conforming to ePub 2 standards you must include the com.apple.ibooks.display-options.xml file in order to have embedded fonts or fixed layout. Here is a template I use: Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <!-- all devices --> <option name="fixed-layout">true</option> <!-- fixes the layout --> <option name="specified-fonts">false</option> <!-- set to "true" when embedding fonts --> <option name="open-to-spread">true</option> <!-- single page or full spread on open --> <!--<option name="orientation-lock">landscape-only</option> "landscape-only" or "portrait-only" or leave this line commented --> <option name="interactive">false</option> <!-- set to "true" when using javascript or canvas --> </platform> </display_options> |
|||
![]() |
![]() |
![]() |
#9 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Maybe I should have asked for the six-year-old explanation, but thanks
![]() I don't use fixed layout, just the embedded fonts. For the meta tags you mention, I think I have no use. For now, until I get as smart as a twelve-year-old, I'll stick to the .xml. |
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Your forum rank suits you just fine it seems
![]() |
![]() |
![]() |
![]() |
#11 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
For someone that hadn't even heard about html and css before February '14, I'm doing alright I guess. For a computer specialist as yourself, I guess I do look like a village idiot. But I'm grateful for all the info I get, so K for you.
|
![]() |
![]() |
![]() |
#12 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Hah! I was messin with you, chill hehe, you're nothing like the village idiot, the village idiot never asks any questions
![]() |
![]() |
![]() |
![]() |
#13 | |
Scripler Project Lead
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
|
Quote:
Anywho that iBooks needs to be told in three different ways to use embeded fonts is insane. It's already specified in the epub without these extra vendor-specific add-ons...(but yeah so many examples like this ...) |
|
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Last edited by AlanHK; 11-16-2017 at 10:34 PM. |
|
![]() |
![]() |
![]() |
#15 | |
Scripler Project Lead
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19
Karma: 19304
Join Date: May 2014
Location: Copenhagen, Denmark.
Device: Gameboy Color
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
embed fonts, embed multiple fonts, epub, fonts |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding fonts in ePub using Sigil | yaip | Sigil | 26 | 07-19-2013 09:23 AM |
Embedding fonts in ePub/Kindle | NoEarthlyReason | Workshop | 3 | 05-27-2013 09:01 PM |
Embedding Fonts in EPUB- iPad | matteino10 | Apple Devices | 0 | 03-15-2012 09:32 AM |
Embedding fonts in EPUB? | Acey | Calibre | 19 | 11-06-2011 10:01 AM |