04-01-2021, 03:44 AM | #1 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
Why is this font working with h1 but not with p?
So I've been trying to figure out why the font is not working. It shows fine on Calibre but on iPhone or macOS (iBook) it is not working. Only the h1 seems to be working.
The book is 3 lines only. Could someone please take a look and advise. I am going crazy here. I tried to delete all epubs on my Books app but it didn't help. Thanks. |
04-01-2021, 07:22 AM | #2 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you really using iBooks or Books? iBooks is one of a number of old versions and Books newer.
|
Advert | |
|
04-01-2021, 01:44 PM | #3 |
Bibliophagist
Posts: 35,415
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
At a quick look at the epub, since it is an epub3 file, you need to add the metadata entry: <meta property="ibooks:specified-fonts">true</meta> to the content.opf file in the metadata section. I've done that in your sample epub and attached the modified version to this message. Let me know if if works.
|
04-01-2021, 03:23 PM | #4 | |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
Quote:
Everything seems to be working in Sigil. However, viewing them on those 2 apps does not reflect that. I attached a pic from Sigil along with what I see in Books. As you can see, for some reason, the h1 is correct and the font is used. However, for p, this is not the case. Thank you for trying to help me! |
|
04-01-2021, 03:44 PM | #5 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
|
Advert | |
|
04-01-2021, 03:47 PM | #6 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-01-2021, 04:54 PM | #7 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
|
04-01-2021, 05:12 PM | #8 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Your font declaration appears to contain some redundant entries. Also since this is an epub2 book, you might want to embed a com.apple.ibooks.display-options.xml file. The version that I attached appears to display the correct font in Apple Books on my phone.
|
04-01-2021, 05:54 PM | #9 |
Bibliophagist
Posts: 35,415
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Sorry, my screwup. I did the modification for an epub3 for Books/iBooks while doitsu did the correct modification with the com.apple.ibooks.display-options.xml file for an epub2. All I had to do was to look at the top of the screen where Sigil happily said epub2.0.
Last edited by DNSB; 04-01-2021 at 05:57 PM. |
04-01-2021, 05:59 PM | #10 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
Thank you. It seems to be working on macOS Books but not on iOS Books. I attached a picture. I also noticed that some of my files which are not working has that file. However, my file is editable on Sigil. Yours is not. I have to open it with VS Code to look into it.
Last edited by morty92222; 04-01-2021 at 06:13 PM. |
04-01-2021, 06:18 PM | #11 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
Thank you. However, even after the modification it seems to be working only on macOS Books. iOS Books is still not working and not showing the embedded font.
|
04-01-2021, 10:46 PM | #12 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
I was reading documentation for how to make epub for Books and Apple is saying that its apps can handle both epub 2 and 3.
Last edited by morty92222; 04-01-2021 at 11:40 PM. |
04-02-2021, 12:51 AM | #13 | ||
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I'm assuming that you're referring to com.apple.ibooks.display-options.xml. That file can't be edited in Sigil, but it never needs to be edited anyway. Quote:
If you convert your book to an epub3 book, you'll need to add <meta property="ibooks:specified-fonts">true</meta> to the content.opf file. You'll also need to add the ibooks namespace to the <package> tag. For more information, see the Apple Books Asset Guide. |
||
04-02-2021, 02:04 AM | #14 | |
Enthusiast
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
|
Quote:
It does not even show "Original" in font selection on iOS. Also, in Sigil it does not use the font! Are you sure you did not install the font on your machine? |
|
04-02-2021, 03:37 AM | #15 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I have an older model, and my font menu shows an Original option, which was checked. Spoiler:
It does show the font embedded in my version on my Windows 10 machine. What version do you use? Yes. |
|
Tags |
calibre, epub, font |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font Size Not Working, h1, h2, to PDF | Axell | Conversion | 1 | 06-18-2015 09:55 PM |
Font families not working | JSWolf | Kobo Reader | 19 | 12-24-2014 07:42 PM |
How to get font size working in ePub? | JSWolf | Kobo Reader | 28 | 12-14-2014 05:00 PM |
More on working around the font-size issue | billingd | Kobo Reader | 13 | 06-25-2010 08:49 PM |
Base Font Size not Working | Colaveare | Calibre | 0 | 05-06-2009 02:09 AM |