Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2012, 08:23 PM   #1
EldRick
Addict
EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 385
Karma: 91339
Join Date: Aug 2010
Device: Kobo Mini, Kobo Glo (Sony PRS-950, Nook STR, Kobo 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?
EldRick is offline   Reply With Quote
Old 03-06-2012, 12:43 PM   #2
EldRick
Addict
EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 385
Karma: 91339
Join Date: Aug 2010
Device: Kobo Mini, Kobo Glo (Sony PRS-950, Nook STR, Kobo 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.
EldRick is offline   Reply With Quote
 
Advertisement
Old 03-06-2012, 03:20 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,906
Karma: 4329385
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
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}
jackie_w is offline   Reply With Quote
Old 03-06-2012, 08:54 PM   #4
ElsieC
Zealot
ElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmos
 
ElsieC's Avatar
 
Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
Quote:
Originally Posted by jackie_w View Post
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}
Oh! I just learned to create .css files for PRS+ to change the font while I am reading. Do I add one of your examples to the .css files I have just created so that when I change font, I can also specify the size? That would be great! For example, could I choose Calibri font and have it set to 15 pt, but when I choose Verdana font, it is 14 pt? I hope that question makes sense. I can't wait to try this out! Thank you so much.

ElsieC
ElsieC is offline   Reply With Quote
Old 03-06-2012, 08:59 PM   #5
Belfaborac
Wizard
Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.
 
Belfaborac's Avatar
 
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?
Belfaborac is offline   Reply With Quote
Old 03-06-2012, 09:38 PM   #6
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,906
Karma: 4329385
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
@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:
Originally Posted by Belfaborac View Post
Same question as ElsieC here. Could you perhaps paste in an example of a css-script jackie_w?
This is a simple one to display epub in font CharisSIL, with font-size 0.85em and line spacing of 1.2. Tweak to suit.

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}
Caveat: Please be aware that sooner or later you will come across an epub whose own css file will stop your PRS+ css files working properly. So don't be discouraged if it happens to be the first one you try (Sod's Law ). Try a few more. The problem usually boils down to the fact that the epub internal css file also contains one or more conflicting font-family: settings. The problem epub can be fixed by manually editing its css file and removing these offending font-family settings.

Last edited by jackie_w; 03-07-2012 at 08:15 AM. Reason: typo
jackie_w is offline   Reply With Quote
Old 03-06-2012, 10:04 PM   #7
Belfaborac
Wizard
Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.Belfaborac ought to be getting tired of karma fortunes by now.
 
Belfaborac's Avatar
 
Posts: 1,498
Karma: 5199835
Join Date: May 2010
Location: Norway
Device: Sony PRS-505, PRS-950
Quote:
Originally Posted by jackie_w View Post
This is a simple one to display epub in font CharisSIL, with font-size 0.85em and line spacing of 1.2. Tweak to suit.
Wonderful, thanks a lot!

Quote:
Caveat: Please be aware that sooner or later you will come across an epub whose own css file will stop your PRS+ css files working properly. So don't be discouraged if it happens to be the first one you try (Sod's Law ). Try a few more. The problem usually boils down to the fact that the epub internal css file also contains one or more conflicting font-family: settings. The problem epub can be fixed by manually editing its css file and removing these offending font-family settings.
Yep, I've got some of those already. Not a big deal for me really, as I'm not pathologically opposed to the built-in font. So little that I've still not gotten around to doing anything to them, nor is it likely I will unless I come across a lot more.
Belfaborac is offline   Reply With Quote
Old 03-06-2012, 11:24 PM   #8
ElsieC
Zealot
ElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmos
 
ElsieC's Avatar
 
Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
Thank you, this worked perfectly!
ElsieC is offline   Reply With Quote
Old 03-07-2012, 02:31 PM   #9
EldRick
Addict
EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.EldRick is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 385
Karma: 91339
Join Date: Aug 2010
Device: Kobo Mini, Kobo Glo (Sony PRS-950, Nook STR, Kobo Touch, K-DX, K-3)
Outstanding! Thanks very much.
EldRick is offline   Reply With Quote
Old 03-09-2012, 03:02 AM   #10
ElsieC
Zealot
ElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmos
 
ElsieC's Avatar
 
Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
Quote:
Originally Posted by ElsieC View Post
Thank you, this worked perfectly!
. . . 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
ElsieC is offline   Reply With Quote
Old 03-14-2012, 10:08 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,485
Karma: 19300555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
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.
JSWolf is offline   Reply With Quote
Old 03-15-2012, 07:32 PM   #12
ElsieC
Zealot
ElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmos
 
ElsieC's Avatar
 
Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
Quote:
Originally Posted by JSWolf View Post
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.

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:
@font-face {
font-family: "verdana";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/verdana.ttf);
}

@font-face {
font-family: "verdana";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/verdanab.ttf);
}

@font-face {
font-family: "verdana";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/verdanai.ttf);
}

@font-face {
font-family: "verdana";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/verdanaz.ttf);
}

body, div, p {
font-family: "verdana";
}


Thank you.

ElsieC
ElsieC is offline   Reply With Quote
Old 03-15-2012, 09:45 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,485
Karma: 19300555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by ElsieC View Post
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:
@font-face {
font-family: serif;
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/verdana.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/verdanab.ttf);
}

@font-face {
font-family: serif;
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/verdanai.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/verdanaz.ttf);
}

body, div, p {
font-family: serif;
}


That is what you do and you can still change the font.
JSWolf is offline   Reply With Quote
Old 03-15-2012, 10:13 PM   #14
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 2,312
Karma: 5761596
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PRS-350, Nexus S, Galaxy S, Nook Color, iPhone4, iPT4, iPad 2012
Quote:
Originally Posted by JSWolf View Post
Spoiler:
@font-face {
font-family: serif;
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/verdana.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/verdanab.ttf);
}

@font-face {
font-family: serif;
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/verdanai.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/verdanaz.ttf);
}

body, div, p {
font-family: serif;
}


That is what you do and you can still change the font.
Except Verdana is Sans Serif, not Serif.
ilovejedd is offline   Reply With Quote
Old 03-15-2012, 11:14 PM   #15
ElsieC
Zealot
ElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmosElsieC has become one with the cosmos
 
ElsieC's Avatar
 
Posts: 121
Karma: 21024
Join Date: Feb 2012
Location: Ohio, USA
Device: Sony PRS-505
Quote:
Originally Posted by ilovejedd View Post
Except Verdana is Sans Serif, not Serif.
I had wondered about that myself, but I tried it, and it works.

Thank you to everyone who helped me get the fonts working. It is nice to change fonts as my mood (or the lighting) changes.

ElsieC
ElsieC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change font size and font style? butterbescotch Sigil 20 09-06-2013 09:22 PM
How to change font size? Mike L Calibre 17 07-04-2013 12:39 PM
Can I change heading font size in Calibre? lizzielou Calibre 3 01-21-2012 10:31 AM
Can't change font or font size in ereaders jmacg Sigil 30 10-23-2010 10:21 PM
Font Size Change Phonella Calibre 10 01-28-2009 01:46 PM


All times are GMT -4. The time now is 04:17 PM.


MobileRead.com is a privately owned, operated and funded community.