10-25-2011, 02:46 PM | #1 |
self publishing novelist
Posts: 30
Karma: 54620
Join Date: Oct 2011
Location: dual citizenship in the interwebz and canada
Device: none
|
Is it possible to really embed fonts yet?
Q: Is it possible to bundle free fonts inside the ePub container so they can work on the ereader?
Backstory: Although I don't actually have an ebook reader, I have been playing around with ebooks on my computer (Calibre Reader). This is a big deal for me as I am a novelist learning about self publishing, and I want my novels to be a perfect as possible. I played around with Calibre, and it seems I can fairly easily make an ePub but I was having trouble getting the table of contents to do what i want, and most especially to include fonts. I have used markup and CSS making websites, which ought to help me make this work. So I've been trying to use Sigil, since it has the advantage of allowing me direct access to the code, an easy way to make chapter stops, and a place to load fonts and css. Except I can't actually edit the CSS in Sigil, and no matter what I do, the fonts I include don't work. So it occurred to me to seek expert advice, which is how I found my way here. Old threads here say first it is not possible, later threads talk about doing the font face thing, but I hate the idea. Just I hated that the only way I could include fonts in my word press blog was to use Google fonts. The essential problem I see is that the existence of the font is in Google's hands, or it depends on the continued existence of the website where the font can be found, and no broken links. What I want to truly embed my chosen fonts so they are there in the reader, bundled with the book. They don't take up much room. If the ebook sits in the ereader, why can't the publisher's fonts sit there in the epub file too? There is no reason I can see why this should not be possible, if the markup is done the same way it would be for websites, with the publisher's choice listed first, then alternates, so the reader user can default to their own preferences if they like. |
10-25-2011, 04:40 PM | #2 |
Guru
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
Have a look at my ePub tutorial (link in my signature). It covers the basics of html, css and Sigil, including font embedding among other formatting tasks.
I hope you find it useful. And welcome to MobileRead!!! |
10-25-2011, 08:12 PM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Physically embedding fonts inside an epub is easily done, once you know what to do. Publishers do it often (usually with the Charis SIL font in the epubs I've encountered). You still need to do the @font-face statements, but they point to the font files actually inside the epub
If you plan to publish, you would need to read the font copyright carefully to make sure that distributing the fonts was legal. I guess you'd also need to check that embedded font epubs worked correctly on a good range of the most popular readers. I can vouch for the fact they work on all the readers I own. |
10-25-2011, 09:22 PM | #4 | |
Resident Curmudgeon
Posts: 74,526
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
10-26-2011, 02:26 PM | #5 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
This has nothing to do with Calibre; moved to the ePub forum.
|
10-28-2011, 03:24 AM | #6 |
self publishing novelist
Posts: 30
Karma: 54620
Join Date: Oct 2011
Location: dual citizenship in the interwebz and canada
Device: none
|
I will take a look this weekend, Pablo, thanks!
|
10-28-2011, 03:37 AM | #7 | ||
self publishing novelist
Posts: 30
Karma: 54620
Join Date: Oct 2011
Location: dual citizenship in the interwebz and canada
Device: none
|
Quote:
Quote:
Thanks very much for your help, jackie_w |
||
10-28-2011, 03:46 AM | #8 | |
self publishing novelist
Posts: 30
Karma: 54620
Join Date: Oct 2011
Location: dual citizenship in the interwebz and canada
Device: none
|
Quote:
I appreciate the heads up about the Kobo reader, JSWolf, thanks. [Especially as I haven't yet had the opportunity to use one.] Again, thanks to all... I won't have time to try any of this 'til the weekend, but it's fabulous to have some hope of actually succeeding |
|
10-28-2011, 03:53 AM | #9 |
self publishing novelist
Posts: 30
Karma: 54620
Join Date: Oct 2011
Location: dual citizenship in the interwebz and canada
Device: none
|
No worries, HarryT, I'm still finding my way around; I didn't realize there were segments for formats; what actually brought me here were old font threads in the Calibre section. I'll work on it
|
10-28-2011, 05:49 AM | #10 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
10-28-2011, 11:04 AM | #11 |
Resident Curmudgeon
Posts: 74,526
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In the CSS
Code:
@font-face { font-family: "Charis SIL"; font-weight: normal; font-style: normal; src: url(fonts/CharisSILR.ttf) } @font-face { font-family: "Charis SIL"; font-weight: bold; font-style: normal; src: url(fonts/CharisSILB.ttf) } @font-face { font-family: "Charis SIL"; font-weight: normal; font-style: italic; src: url(fonts/CharisSILI.ttf) } @font-face { font-family: "Charis SIL"; font-weight: bold; font-style: italic; src: url(fonts/CharisSILBI.ttf) } @font-face { font-family: "Old Claude LP Oldstyle Figures"; font-weight: normal; font-style: normal; src: url(fonts/Old_Claude_LP_Oldstyle_Figures.ttf) } body { font-family: "Charis SIL", serif; widows: 0; orphans: 0; margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; text-align: justify; font-size: 95%; line-height: 1.04em } Code:
<item href="fonts/CharisSILB.ttf" id="font1" media-type="application/x-font-ttf"/> <item href="fonts/CharisSILBI.ttf" id="font2" media-type="application/x-font-ttf"/> <item href="fonts/CharisSILI.ttf" id="font3" media-type="application/x-font-ttf"/> <item href="fonts/CharisSILR.ttf" id="font4" media-type="application/x-font-ttf"/> <item href="fonts/Old_Claude_LP_Oldstyle_Figures.ttf" id="font5" media-type="application/x-font-ttf"/> Code:
span.drop-cap { font-family: "Old Claude LP Oldstyle Figures", serif; font-weight: normal; font-style: normal; font-size: 1.17em; } I hope this helps. This will mostly work for iBooks but you do have to add some non-standard code elsewhere for this to work. ON the Kobo, they botched things big time and refuse to listen to the bug report I've mentioned to them. The font-family in the body doesn't work on a Kobo. The drop-cap font will work fine. For a Kobo, you'll have to move the font-family from body to all the other CSS styles you use where that font is to be used. But in most cases like Sony, B&N, ADE (desktop), iRiver, Onyx, Boox, Bookeen, etc, this will work as is. Charis SIL is the font that most publishers embed as it is a good looking font and it's free. |
10-29-2011, 05:26 AM | #12 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Will hard-coding the font in the "body" style not prevent the user from choosing a different font on those reading devices which provide such an option?
|
10-29-2011, 09:29 AM | #13 |
Booklegger
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
Harry, I think you are probably right, although it depends on the reader of course. Certainly Kobo has chosen to override a 'body' choice; I'm not sure what my new Sony T1 does yet.
In my opinion, having the publisher force a font choice on the user removes one of the nicer features of ebooks. I think the user, not the publisher and not the ereader maker, should have the choice of body font. I'm a hopeless idealist. |
10-29-2011, 09:49 AM | #14 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
Using an embedded font for some special text is fine, provided the font is chosen well and that the book will still look decent when the text defaults to the reader's own font instead of the embedded font. Any use of an embedded font should be made based on actual experience with that particular font on a wide range of devices. Experience with how a particular font looks in print on paper is of absolutely no value is choosing a font for an ebook. |
|
10-29-2011, 09:50 AM | #15 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Exactly - that was precisely my point. By all means use embedded fonts for such things as titles, but please, Mr. Publisher, leave the choice of body font to the reader.
|
Tags |
calibre, embed, epub, fonts, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can it embed fonts? | chalimac | Kobo Reader | 1 | 06-27-2017 05:46 PM |
How to embed fonts in ePub after Calibre | fiery | ePub | 79 | 12-05-2016 02:18 AM |
Best Practice: Embed Fonts?? | luthar28 | ePub | 37 | 11-01-2011 04:16 AM |
Is it possible to UN embed fonts? | lmronan | Sigil | 14 | 06-04-2010 09:26 AM |
Any free software can embed fonts in epub | droople | ePub | 4 | 03-06-2010 05:40 PM |