![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2015
Device: kindle
|
Adding a font to an ebook
I am trying to add a font to an epub document, it is a ttf file that I have added to linux (ubuntu.) Any suggestions to wrapping the font in with the epub? I have tried most of the software and some how tos with no success.
Thank you Mick |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You would probably be best off with an editor like Sigil or the Calibre editor. Those will handle several things for you. In short, this is what needs to be done.
1. Add the font(s) to the ePUB (it is a zip, but add, do not remake if you have not done it before) 2. Add the font to the OPF file 3. Ensure the font is defined in the stylesheet (@font-face) and actually used for certain classes (font-family) 4. Ensure the classes are used in the actual XHTML files by using the classes and the stylesheet. An editor will help you with 1, 2 and partially with 4. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2015
Device: kindle
|
Ok, so, I downloaded calibre and it actually converted the file properly and (it) included the font. But when I upload it to Amazon and preview it, the font is not there!?
Thank you Mick Edit, I did check and 1-4 seems to be correct, but I am new to this. Last edited by michaelpc; 01-29-2015 at 04:25 AM. |
![]() |
![]() |
![]() |
#4 | |
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:
You can't UPLOAD AZW3 to your device via Amazon. You can Sideload AZW3 |
|
![]() |
![]() |
![]() |
#5 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
(However, I don't believe in embedding fonts. I fear they will annoy some people and fail to display for others who have older e-ink readers.) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,023
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem is if you have to embed a font in order to properly display something, then there is going to be an issue as your font will be stripped out by Amazon and even if it wasn't, it wouldn't display in Mobi since Mobi doesn't work with embedded fonts.
Also, you would need to place a notice in the beginning of the eBook to say that you need to turn on publisher default fonts or it won't display. |
![]() |
![]() |
![]() |
#7 | ||
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
|
Quote:
No, sweetie, you are mis-remembering, that's not right. Not all fonts are stripped; MANY aren't. Hell, MOST aren't. As you know, we provide white-label service for numerous print layout houses, creating eBooks with fonts, and we only run into a font-stripping problem VERY OCCASIONALLY. When we do, it's almost never, mind you, in a commercially-done book (in terms of layout, interestingly)...it seems to be those sort of whacky-layout, "I designed this myself!" kind of books, from self-pubs. (This isn't a crack about self-pubs, but as one of the larger Indy firms of eBook producers, we get some outright doozies). And it's almost always a scenario involving an embedded serif, san-serif and a third "fancy" font, like a handwriting font, or something else that is a particular or "special" font. We had this with a book with two (not one, but Two!) Lucida fonts (handwriting AND Calligraphy, gods help us) and a book with "Chiller." PLUS the "normal" serif and sans-serifs. Now, you can't blame a book for balking over those types of things, now, can ya? Quote:
Hitch |
||
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, I can at least see where they are coming from in limited circumstances. For instance, recently I had to decontaminate H.I.V.E (Higher Institute of Villainous Education) which had way too many fonts and images (and backads, G-d help me), but it also had some headings which used some angular font or other (same as in the pbook) that was supposed to tie in with the computers theme.
They were also using some special font and demented CSS to make a weird colored panel for the Author Bio. ![]() |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,023
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One recent eBook I had to clean of all of the fonts is The Martian. It has FreeMono, FreeSans, and FreeSerif embedded. These fonts are just way too light for use on an eInk Reader. I think whoever decided to embed those rather poor fonts has neve viewed that eBook on any eInk Reader or they would not have been used. Even with the front light on, it's still hard to read. The sans font was not too too bad as it was just for chapter titles and readable (not as good as it should be). The serif font was hard to see and the mono font nearly impossible to see.
Last edited by JSWolf; 02-05-2015 at 09:16 PM. |
![]() |
![]() |
![]() |
#11 | |
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
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,023
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Using LCD to view a font is in no way a proper substitute to viewing on an eInk screen. I do thinkt hat these days, it would be prudent to have different devices because of the different screens to test the eBooks. |
|
![]() |
![]() |
![]() |
#13 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
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:
have not hired a 'Pro' with a good track record. It is not Rocket science (for basic books), but you do need to be able to recognize a rocket if you trip on one in the alley. |
|
![]() |
![]() |
![]() |
#15 | |
temp. out of service
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,815
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
Quote:
The tolino (a German crappy reader) has Linux Libertine (as we remember a TNR replacement designed! for being printed) As a built-in font to be chosen from. *hands gloves of epic facepalm out* |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font Name not Displaying Correctly in Viewer Pane When Adding Fonts | ssholloway | Calibre | 0 | 05-27-2014 09:19 PM |
Adding font page and pictures to Epub. Rookie version. | amb123 | Conversion | 5 | 04-19-2012 05:55 PM |
Problems when adding a new ebook | ES_PeLoS | Calibre | 6 | 03-23-2011 04:41 PM |
Adding Images To Ebook | gtshadow | Calibre | 3 | 09-29-2010 11:23 AM |
Error with adding font to EPUB news recipe | megabadd | Calibre | 2 | 01-11-2010 10:16 AM |