![]() |
#1 |
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Epub & fonts
My current ebook project has a couple of fonts specified. I'd like to make sure they're included in the Epub version.
I have fonts and the html source properly names them. Do I just copy the fonts into the epub or is there a more complicated process involved? Thanks. |
![]() |
![]() |
![]() |
#2 |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
you have to make sure the fonts are listed in the manifest as well of course, and it's probably best to keep them in a specific fonts folder, but after that, yes, you just copy them in. make sure all your references (html / css, and manifest) give the precise location (including name of subdirectory : case matters). you can take a look at how they're referenced in one of jellby's epubs (i believe the prince and the pauper has embedded fonts) or my epub of three men and a boat.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Would this be correct? I'm not quite certain what the id is for.
<item id="Tahoma" href="Tahoma_KOI8.ttf" media-type="application/x-truetype-font" /> |
![]() |
![]() |
![]() |
#4 |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
i used this :
<item id="fontinbold_font" href="fonts/Fontin-Bold.ttf" media-type="application/x-truetype-font" /> <item id="fontinitalic_font" href="fonts/Fontin-Italic.ttf" media-type="application/x-truetype-font" /> <item id="fontinregular_font" href="fonts/Fontin-Regular.ttf" media-type="application/x-truetype-font" /> with more descriptive ids, so i could differentiate between the various fonts (since i have 3 from the same family). other than that, i don't see a font folder, are your fonts at the root of the epub file ? if not, don't forget the path. |
![]() |
![]() |
![]() |
#5 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
In the .css files, you need the @font-face statement, and in the src property the url must be relative to where the .css sits. Like this: Code:
@font-face { font-family: "Dearest"; src: url("../fonts/Dearest.ttf") format("truetype"); } As examples, of my ePUBs, "The Prince and the Pauper", "Savage Stories of Conan", "Don Quijote" and "Novelas Ejemplares" use embedded fonts. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
Will that @font-face declaration work if it's between the style tags in the header of an html file? If so, then becuase calibre will extract the data this means I can continue to use MobiCreator. |
|
![]() |
![]() |
![]() |
#7 |
Exwyzeeologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Zelda and Jellby seem to have you squared away on the technical aspects, but I wanted to mention that Tahoma can't legally be included in an epub for redistribution. To the best of my knowledge, only Microsoft can distribute that typeface.
|
![]() |
![]() |
![]() |
#8 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,584
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
£1500. For a five year licence. To be fair, this fee covers up to five fonts, and in up to five different ebooks. I suppose if you were publishing lots of popular ebooks, £60/book/year wouldn't be completely out of the question. But it still seems very high to me. And they did also say they're "in the process of reviewing" their ebook strategy. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedding fonts in EPUB? | Acey | Calibre | 19 | 11-06-2011 10:01 AM |
iPad iBooks, ePub, embedded fonts & encryption | pdurrant | Apple Devices | 37 | 06-08-2010 01:24 PM |
Other epub fonts Opus | talaivan | Bookeen | 4 | 03-03-2010 02:40 PM |
PRS Fonts, PDF gray && Calibre | Hranostak | Sony Reader | 5 | 11-24-2008 11:50 AM |
PRS Fonts, PDF gray && Calibre | Hranostak | Sony Reader | 1 | 11-22-2008 02:50 PM |