12-26-2011, 07:29 PM | #91 | |
Resident Curmudgeon
Posts: 74,048
Karma: 129333562
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: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf); } @font-face { font-family: serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf); } @font-face { font-family: serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf); } @font-face { font-family: serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf); } body { font-family: serif; widows: 0; orphans: 0; margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; text-align: justify } Last edited by JSWolf; 12-26-2011 at 09:09 PM. |
|
12-26-2011, 07:44 PM | #92 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@jagwar,
The method you've just tried will always display the epub in Amasis once you've selected Amasis the first time you open the book, i.e. it will be remembered every time you open it thereafter. This is by far the easiest/fastest method and should work for both DRM'd and non-DRM'd epubs. The drawback to the above is that Bold and/or Italics may not be displayed correctly. The workaround, if your epub is non-DRM'd, is to edit the .css file inside the epub to use the 4 Amasis font files correctly. The code you need for Amasis is in post #32 earlier in this thread. Post #80 may also be helpful for outlining ways to edit the css file. You must leave the selected font as 'Original' on the PRST1 for this to work. If you need more specific help, just ask. Last edited by jackie_w; 12-26-2011 at 07:53 PM. |
Advert | |
|
12-26-2011, 07:46 PM | #93 | |
Resident Curmudgeon
Posts: 74,048
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-26-2011, 08:45 PM | #94 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I beg to differ. I'm sure that code suits you perfectly (and maybe many other users) but it is very specific.
If you code the @font-faces as font-family: "Amasis" rather than the more generic font-family: serif it will prevent you using the standard select-a-font feature if you decide at a later date to choose to read the epub in one of the other T1 fonts e.g. Palatino or Verdana. This won't matter to everyone but leaving your options open is a good thing, is it not? P.S. I hadn't seen your post #91 when I posted #92. My response was to jagwar rather than yourself. Last edited by jackie_w; 12-26-2011 at 08:48 PM. |
12-26-2011, 08:47 PM | #95 | |
Resident Curmudgeon
Posts: 74,048
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
12-26-2011, 09:05 PM | #96 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Yes, that should be more forgiving. FYI you don't need the double-quotes around "serif".
The contents of your body {...} css won't suit everyone, but as long as others understand that these non-font-related settings are your personal preference I guess that's OK. |
12-26-2011, 09:09 PM | #97 | |
Resident Curmudgeon
Posts: 74,048
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-27-2011, 06:09 AM | #98 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2011
Device: T1
|
Quote:
Is there a way to tell Calibre to always add that code to extra css or do I have to do it manually? |
|
12-27-2011, 12:31 PM | #99 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Note: For some reason Calibre copies them into every html file inside the epub rather than just once into the .css file. However, the result should be the same on your Sony. If you also want to add some control for margins, widows/orphans, line-height (or any other css attributes which take your fancy), then you could also consider adding some body {... ...} css into the ExtraCSS box, as shown in JSWolf's example in post #91. If you are not planning to do a Calibre conversion then you need to manually copy the @font-face statements into the .css file inside the epub. Caveat: ebooks are created in many and various ways by people with varying abilities. Therefore you may come across some epubs which don't work with this simple font customisation. This is because the existing css in the epub is overriding your changes. These badly behaved epubs can always be fixed manually but it will require you to examine the css to see what is going wrong. Consequently, the more you learn about html/css the easier you will find it to knock a recalcitrant epub into shape. |
|
12-27-2011, 03:46 PM | #100 | ||
ebooknut
Posts: 297
Karma: 688154
Join Date: Oct 2011
Device: Kindle Voyage & Oasis
|
Quote:
I like this very much as it leaves the css cleaner and more universal, less likely to cause problems if you want to read the same epub on other devices. Also, I didn't realize using the generic "serif" will let you switch fonts on the T1. Very nice! Thanks for so many tips, jackie_w! P.S. re: Quote:
Last edited by pssquirrel; 12-27-2011 at 03:55 PM. Reason: correction |
||
12-27-2011, 05:05 PM | #101 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2011
Device: T1
|
Quote:
Thanks for the solution and the warning. I was searching for this easy way because my father should be able to do this on his own. If he runs into trouble sometimes he can send me the book for a manual adjustment but now he can do the most on his own. Thanks! |
|
12-28-2011, 05:37 PM | #102 |
Connoisseur
Posts: 90
Karma: 16056
Join Date: Dec 2011
Device: Sony PRS T1
|
Hello,
Could you please, teach me how to display Georgian Unicode on my Sony PRS-T1. I put sylfaen.ttf in fonts folder in the Reader root directory (the folder created myself). I Think I need @font-face statement for sylfaen.ttf to encode into css with calibre. Thanks everybody for help. |
12-28-2011, 07:17 PM | #103 | |
Evangelist
Posts: 464
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Kindle PW3
|
Quote:
I have added JSWolf's sample to preferences --> common options --> Look & Feel --> Extra CSS , but the styles do not get automatically get applied when converting. If, at the time of conversion I paste the CSS stuff in under Look & Feel, then the settings do get applied to the conversion. I notice that other options I have checked off in preferences --> common options --> Look & Feel, are also automatically checked off when I view Look & Feel at time of conversion. However, the Extra CSS window is blank. |
|
12-29-2011, 06:14 AM | #104 | |
Addict
Posts: 283
Karma: 138550
Join Date: Mar 2009
Device: Gen3(†); PB302(↓); PRS-350; T1; voyage
|
Quote:
|
|
12-29-2011, 10:14 AM | #105 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks how to return to the original font | lizayin | Amazon Kindle | 1 | 07-07-2011 07:25 PM |
Changing original font css in ePub | jlbfoot | Sony Reader | 4 | 12-28-2010 12:07 PM |
Troubleshooting Font size changing | Kumabjorn | Amazon Kindle | 1 | 07-23-2010 12:49 AM |
DR1000 Changing Font-Size | ThR | iRex | 6 | 06-21-2010 06:29 AM |
Book Conversion - Changing Original Texts | RWood | Sony Reader | 13 | 04-18-2007 01:28 PM |