![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 470
Karma: 112801
Join Date: Aug 2010
Device: Aura H2O (i86, M96C, Mini&Glo, PRS-950, STR, K-Touch, K-DX, K-3)
|
Change font size choices with calibre?
I really like PRS+' ability to easily change typefaces, but I'm a bit frustrated by the size selections on my 950.
It seems that medium is always too big, anything larger is HUGE, and Small is just too small, while Extra Small needs a magnifying glass. Is there any way in calibre or any css method to set the font size choices to more useful values? I'd love to be able to adjust type size by one or two points, instead of the large increments Sony provides. I'd be ecstatic if I could choose between 10-, 11-, 12-, 13-, 14-, and 15-point sizes. I've tried changing the Font Size Key in Common Options under Conversion preferences, but it does not seem to have any effect. Any other methods? Extra CSS settings? |
![]() |
![]() |
![]() |
#2 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 470
Karma: 112801
Join Date: Aug 2010
Device: Aura H2O (i86, M96C, Mini&Glo, PRS-950, STR, K-Touch, K-DX, K-3)
|
After experimentation, I was able to change the Base Font size (to 11-pt.) in Calibre, giving at least one size between the previous Medium and Small, but the other choices are still far too much larger and smaller to be useful for text.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
You can also use PRS+ to easily change font-sizes. You just need to create a series of .css files, each containing a different font-size (as well as your chosen font-family) e.g.
body {font-size: 0.90em; font-family:whatever} body {font-size: 0.95em; font-family:whatever} |
![]() |
![]() |
![]() |
#4 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
|
Quote:
ElsieC |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,498
Karma: 5199835
Join Date: May 2010
Location: Norway
Device: Sony PRS-505, PRS-950
|
Same question as ElsieC here. Could you perhaps paste in an example of a css-script jackie_w?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@ElsieC,
Yes, but don't set your PRS+ css font-size in point units (15pt), use em units (1.25em) or percentages (125%) instead. If you use point sizes you'll find your Sony zoom button no longer has any effect. Ems and %s are scaleable -- pts (and also pixels, px, I think) are fixed. Quote:
Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/CharisSILR.ttf);} @font-face { font-family: serif; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/CharisSILI.ttf);} @font-face { font-family: serif; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/CharisSILB.ttf);} @font-face { font-family: serif; font-weight: bold; font-style: italic; src: url(res:///Data/fonts/CharisSILBI.ttf);} body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book { font-family: serif; font-size: 0.85em; line-height: 1.2} ![]() Last edited by jackie_w; 03-07-2012 at 07:15 AM. Reason: typo |
|
![]() |
![]() |
![]() |
#7 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,498
Karma: 5199835
Join Date: May 2010
Location: Norway
Device: Sony PRS-505, PRS-950
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
|
Thank you, this worked perfectly!
|
![]() |
![]() |
![]() |
#9 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 470
Karma: 112801
Join Date: Aug 2010
Device: Aura H2O (i86, M96C, Mini&Glo, PRS-950, STR, K-Touch, K-DX, K-3)
|
Outstanding! Thanks very much.
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
|
. . . except it didn't work on books that I had already converted using Calibre (EPUB to EPUB) using the Look and Feel, Extra CSS option where I set the font to a specific font.
In case anyone else has come across this issue, here is how I fixed it: I converted the book again, this time choosing Look and Feel, Filter Style Information, and put a checkmark in the box next to "Font" to remove the font properties I had previously assigned. Now the nifty .css files jackie_w helped me create allow me to change fonts on books where I had previously set a font. Yea! ElsieC |
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you want your ePub to use a specific font but still be able to change it if you want, use serif as the name of the font family.
|
![]() |
![]() |
![]() |
#12 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
|
Quote:
I am a little confused. Could you please tell me where I would set the font family to serif? Do you mean in the Look and Feel, Extra CSS window during conversion? I used to have the wording in the spoiler button below in that window, but removed it in lieu of using jackie_w's suggested wording for .css files in PRS+ that are in a folder ON my PRS-505. Spoiler:
Thank you. ElsieC |
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,936
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Spoiler:
That is what you do and you can still change the font. |
|
![]() |
![]() |
![]() |
#14 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
|
![]() |
![]() |
![]() |
#15 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change font size and font style? | butterbescotch | Sigil | 20 | 09-06-2013 08:22 PM |
How to change font size? | Mike L | Calibre | 17 | 07-04-2013 11:39 AM |
Can I change heading font size in Calibre? | lizzielou | Calibre | 3 | 01-21-2012 09:31 AM |
Can't change font or font size in ereaders | jmacg | Sigil | 30 | 10-23-2010 09:21 PM |
Font Size Change | Phonella | Calibre | 10 | 01-28-2009 12:46 PM |