|
|
#1 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,034
Karma: 2422819
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Epub & fonts
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.
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
#2 |
|
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,828
Karma: 908606
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.
__________________
blog.ex-elibris.fr : les liseuses, les ebooks, nos lectures, la technologie… I don't want none of that mischief on my eels! - pdurrant since i would never want to disappoint wde and vr, we are thrilled to present the next exciting avatar in zelda's wardrobe, by vivaldirules himself. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,034
Karma: 2422819
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" />
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
#4 |
|
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,828
Karma: 908606
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.
__________________
blog.ex-elibris.fr : les liseuses, les ebooks, nos lectures, la technologie… I don't want none of that mischief on my eels! - pdurrant since i would never want to disappoint wde and vr, we are thrilled to present the next exciting avatar in zelda's wardrobe, by vivaldirules himself. |
|
|
|
|
|
#5 | |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,148
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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. |
|
|
|
|
|
|
#6 | |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,034
Karma: 2422819
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.
__________________
The Digital Reader blog - www.the-digital-reader.com |
|
|
|
|
|
|
#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: 5,148
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,345
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
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.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| 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 |