![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2014
Device: iPhone 5S, iPad Air
|
Embedded Font not displaying in iBook
So I embedded the font Calibri into the Fonts folder and used the @font-face coding in the stylesheet for all the variations of Calibri but when I apply the font-family style to all text tags (p, h1, h2, h3, h4, h5), save the file and open it in iBooks, the only tags that are pulling Calibri are the h1, h2, etc and any <em> tags. Any ideas what I can do to get it to work across all text tags?
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You have the additional file iBooks need to display embedded font? If not, use the search option. It comes up frequently.
|
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2014
Device: iPhone 5S, iPad Air
|
The .com.apple... blah blah.xml file? Yes I have that one and the only thing it succeeded in doing is setting the font style in iBooks to Seravek which is awful to try and read.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#5 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Tisha:
Did you embed all the faces? I know that sounds like a stupid question, but; also, when you created the CSS, is it possible that you capitalized or didn't capitalize something? While some readers are very forgiving of errors in typing, some aren't. We likely can't help a lot more without seeing your stylesheet, I suspect. Hitch |
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2014
Device: iPhone 5S, iPad Air
|
@Diap - Yup, I tried it in the body as well as inline styling on the <p> tags
@Hitch - All the fonts are embedded and @font-face styling applied (see below) and I've tried it with the font name capitalized and lowercase and added !important tags @font-face { font-family:Calibri; font-weight:normal; font-style:normal; src:url('../Fonts/Calibri.ttf'); } @font-face { font-family:Calibri; font-weight:normal; font-style:italic; src:url('../Fonts/Calibri Italic.ttf'); } @font-face { font-family:Calibri; font-weight:bold; font-style:normal; src:url('../Fonts/Calibri Bold.ttf'); } @font-face { font-family:Calibri; font-weight:bold; font-style:italic; src:url('../Fonts/Calibri Bold Italic.ttf'); } p, h1, h2, h3, h4, h5 { font-family:Calibri, sans-serif !important; } |
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Note: spaces in filenames are not a good idea. Calibri_Bold_Italic.ttf is better if you want to maintain the appearance of words |
|
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Just a suggestion. Albert the clueless. |
|
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
My rule: If it can cause problems... Avoid that practice. BTW You can have spaces in the Font-family name if you enclose those in quotes |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2014
Device: iPhone 5S, iPad Air
|
I hadn't thought of the file name issue but I've updated it to have no spaces and match the @font-face code and still no luck
|
![]() |
![]() |
![]() |
#11 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
That was one that is in the can cause family, not the always causes family. (I can read books with spaces in the section filenames just fine, BUT I can't bookmark those (fails silently) ) Even the iffy is iffy ![]() Good luck tracking things down. Look for little tiny typos. a semi-colon vs a colon. (or one missing) some viewers are more tolerant than other and help (IMHO making it harder to KNOW you have an error, rather than a render engine quirk) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding font in books that already have embedded font | Barty | Calibre | 2 | 10-16-2013 11:38 PM |
Mini advanced font settings ignored in one book - embedded font? | lordofazeroth | Kobo Reader | 4 | 09-20-2013 02:15 PM |
Content Identifying embedded font | hlh.hlh | Amazon Kindle | 5 | 07-17-2013 01:56 PM |
Embedded font problem | Moonraker | Sigil | 13 | 05-21-2013 05:33 PM |
embedded font - now line with embedded font not re-flowing | Kaylee Skylyn | ePub | 23 | 08-09-2012 07:30 PM |