12-04-2009, 02:12 PM | #16 |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
12-04-2009, 02:31 PM | #17 |
Addict
Posts: 373
Karma: 452000
Join Date: Nov 2008
Location: Hamilton, On
Device: Kobo Aura HD
|
ok, what did I do wrong? I opened it, I changed all three css files from serif to arial and nothing happened.
|
12-04-2009, 03:12 PM | #18 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
If the existing ePub is using serif throughout (either explicitly or by default), the easiest way to update it is to redefine serif to Arial and add this definition via Calibre's extra-css option. The simplest possible example is in my post #3, but you can also define the four font variants (normal/bold, normal/italic) for serif (and sans-serif) the same way - just like post #1 but without the "body" entry.
|
12-04-2009, 03:31 PM | #19 |
Addict
Posts: 373
Karma: 452000
Join Date: Nov 2008
Location: Hamilton, On
Device: Kobo Aura HD
|
bugger, so I can't just change the word from serif to arial in the css? *sigh*
I don't really want to install calibre |
12-04-2009, 03:42 PM | #20 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
You can add the required CSS yourself. Just insert the "code" segment I referred to into your primary CSS file. You can also change the font name to arial from serif throughout the CSS if you want, but the name has to be exactly the same as on the corresponding font-family definition (and I think this has to be the same as the name in the .ttf file). In this case I am guessing: Arial rather than arial. The basic point is that it isn't enough for the font to be in the font folder, you also need a @font-face entry.
|
12-04-2009, 03:52 PM | #21 | |
Groupie
Posts: 199
Karma: 24918
Join Date: May 2009
Device: PRS-505,nook,Nook Color,Android
|
Quote:
Otherwise, follow the directions in the thread. Copy the font files into a "fonts" directory and include the "@font-face" commands in the CSS. The first part you only have to do once, and the second part is easier than the change you already made. Good luck. |
|
12-13-2009, 08:23 PM | #22 | |
Wizard
Posts: 1,047
Karma: 203682
Join Date: Oct 2009
Device: Libre 2
|
Quote:
Is there some trick to getting Calibre to do this? I ask, because, after working out what css I wanted by hand editing a test epub, I then pasted the css into Calibre's extra css box, and did a trial conversion. The resulting epub has a stylesheet.css in it, but it does NOT contain my extra css. Edit: Answered my own question. It is buried in the html. Odd, but it works. Last edited by jusmee; 12-13-2009 at 10:33 PM. |
|
12-13-2009, 10:35 PM | #23 | |
Zealot
Posts: 112
Karma: 2781
Join Date: Sep 2009
Location: VA, USA
Device: nook, Ipod touch
|
Quote:
|
|
12-13-2009, 10:56 PM | #24 | |
Wizard
Posts: 1,047
Karma: 203682
Join Date: Oct 2009
Device: Libre 2
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Font and epub, what works on sony, now works on Nook too! | ctos | Barnes & Noble NOOK | 26 | 07-25-2011 09:24 AM |
Does the 550 unicode fonts hack works on 600/900? | siulayhumga | Sony Reader | 2 | 12-25-2009 02:36 AM |
What are the best fonts for the pocket pro? | yportne | Astak EZReader | 36 | 10-21-2009 02:45 AM |
pdf converted to epub file not working on my EZ Pocket Pro Pro | luvshihtzu | Astak EZReader | 2 | 10-20-2009 07:30 PM |
Validated Secure DE works on SONY (EPUB /PDF) | =X= | Sony Reader | 11 | 11-01-2008 07:43 PM |