12-17-2009, 10:53 AM | #196 |
Zealot
Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
|
Yeah, it's modifying the code where I run into problems. I have books that don't use the new font when I convert them in Calibre, whether I look at them on my Reader, Sigil, or Calibre's internal viewer. I use Sigil to edit the code by replacing any font-family reference I find with "Fontin," which causes the font to be used in Sigil and Calibre's internal viewer. But when I put the book on my Reader, it doesn't use Fontin for some reason.
I've been meaning to experiment some more, but I haven't had much time these days. I'm using an older version of Sigil, and maybe updating it would make a difference? |
12-21-2009, 11:02 PM | #197 |
Zealot
Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
|
It turns out I was never able to fix my problem books by hand-editing the code. Luckily, I discovered that if I first converted the ZIP files to LRF, then converted the LRFs to ePubs, the books end up using the new font and I ended up not having to hand-edit them at all.
|
Advert | |
|
12-22-2009, 03:34 PM | #198 |
Connoisseur
Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
|
nice one
|
12-30-2009, 11:45 AM | #199 |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
|
12-30-2009, 07:39 PM | #200 |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Probably put Vietnamese fonts in the fonts directory off of the route directory and pointed the CSS of the ePub to those fonts (as outlined someplace in this thread).
|
Advert | |
|
12-31-2009, 01:54 AM | #201 | |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
Quote:
Sorry for asking you so much. I don't know anything about CSS. Just copy and paste what you give me! |
|
12-31-2009, 10:54 AM | #202 | |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
@font-face { font-family: "Fontin"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/Fontin-Bold.ttf); } @font-face { font-family: "Fontin"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/Fontin-Italic.ttf); } @font-face { font-family: "Fontin_Sans"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/Fontin_Sans_R_45b.otf); } @font-face { font-family: "Fontin_Sans"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/Fontin_Sans_B_45b.otf); } @font-face { font-family: "Fontin_Sans"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/Fontin_Sans_I_45b.otf); } @font-face { font-family: "Fontin_Sans" ; font-weight: bold ; font-style: italic ; src: url(res:///Data/fonts/Fontin_Sans_BI_45b.otf) ; } body { font-family: "Fontin", serif; widows: 0; orphans: 0 } |
|
01-01-2010, 07:29 AM | #203 |
Zealot
Posts: 109
Karma: 556
Join Date: Nov 2009
Location: SaiGon VietNam
Device: PRS T1, Kobo Forma 8G, Kobo Libra H2O
|
Yep. I've tried but no chance. I think epub files fetched from different RSS sources that have different structures, depend on the HTML of the website. So that some words don't display correctly [?]. Please view the sceencap.
Last edited by vietchovui; 01-01-2010 at 11:25 AM. |
01-01-2010, 10:19 PM | #204 |
Resident Curmudgeon
Posts: 74,669
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You'll just have to put the font family declaration into whatever CSS elements need it.
|
01-03-2010, 09:40 AM | #205 |
Enthusiast
Posts: 40
Karma: 252
Join Date: Nov 2009
Device: none
|
So here's a question for you pros. Suppose I didn't like the regular version of the font, and I wanted to trick calibre into thinking that the bold version of the font was actually the regular version of the font to be used throughout the body of the text. Is that possible?
Thanks |
01-03-2010, 10:24 AM | #206 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
Code:
body { font-weight: bold; } |
|
01-03-2010, 12:59 PM | #207 |
Enthusiast
Posts: 39
Karma: 124
Join Date: Nov 2008
Location: Lockport, NY
Device: Pw2 @ Retina Mini
|
You can make any font fit into any body text type. Here is an example:
@font-face { font-family:"MinionPro"; font-weight: normal; font-style: normal; src:url(res:///Data/fonts/MinionPro-MediumDisp.otf); } @font-face { font-family:"MinionPro"; font-weight: bold; font-style: normal; src:url(res:///Data/fonts/MinionPro-SemiboldDisp.otf); } @font-face { font-family:"MinionPro"; font-weight: normal; font-style: italic; src:url(res:///Data/fonts/MinionPro-MediumItDisp.otf); } @font-face { font-family:"MinionPro"; font-weight: bold; font-style: italic; src:url(res:///Data/fonts/MinionPro-SemiboldIt.otf); } Minionpro medium display is used as my body text and other versions of it are used for bold, italic... and more. ePub+calibre makes font changing fun and easy, I probably have tried over 100 font combination s now. I use Grandesign Neue Serif now for most of my books. Cheers!! |
01-05-2010, 10:23 PM | #208 | |
Connoisseur
Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
|
A heads up to followers of this thread:
Quote:
|
|
01-06-2010, 07:19 PM | #209 |
I'm Super Kindle-icious
Posts: 6,734
Karma: 2434103
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: KDXG, KT, Oasis
|
Zelda sent me here because I'm still having problems. I have PRSPlus installed my 505 if that makes a difference. Here's my stuff:
Code:
@font-face { font-family: "Fontin"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/Fontin-Regular.ttf); } @font-face { font-family: "Fontin"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/Fontin-Bold.ttf); } @font-face { font-family: "Fontin"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/Fontin-Italic.ttf); } @font-face { font-family: "Fontin Sans"; font-weight: bold; font-style: italic; src: url(res:///Data/fonts/Fontin_Sans_BI.otf); } Code:
body { font-family: "Fontin", serif; } Last edited by daffy4u; 01-06-2010 at 09:03 PM. |
01-06-2010, 09:33 PM | #210 |
I'm Super Kindle-icious
Posts: 6,734
Karma: 2434103
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: KDXG, KT, Oasis
|
Nevermind, I got it. When I added the body information, I left out a space.
I typed "body{" instead of "body {". |
Tags |
epub, fonts |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any Reader With Custom Fonts and Full Justification? | Loose_Appeal | Which one should I buy? | 2 | 07-16-2010 07:16 AM |
ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM |
Custom TTF fonts in MOBI books? | jpt | Astak EZReader | 21 | 11-21-2009 08:24 AM |
Test for custom entities in ePUB | Jellby | ePub | 9 | 05-27-2009 06:45 AM |