Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2009, 04:57 PM   #1
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Epub Font Size Question

What code do you need to use in epub to adjust the font size? And is it added to the html file or the css override in Calibre?
Amalthia is offline   Reply With Quote
Old 03-05-2009, 05:10 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the base font size adjusts overall font size in the epub file. If you want to adjust the font size of specific elemnts you put the neccessary css into override css or you edit the source html and put the neccessary css there
kovidgoyal is offline   Reply With Quote
Advert
Old 03-05-2009, 06:28 PM   #3
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
the base font size adjusts overall font size in the epub file. If you want to adjust the font size of specific elemnts you put the neccessary css into override css or you edit the source html and put the neccessary css there

I don't think I drank enough coffee this morning...how do you adjust the base font size? Specific elements I figured I could use <font size=add number here>

I haven't looked at the epub conversion properties often but is there a place there to adjust the font size? Like what's in the LRF conversion box?
Amalthia is offline   Reply With Quote
Old 03-05-2009, 06:48 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the second option in the Look & Feel section of the EPUB conversion dialog is base font size
kovidgoyal is offline   Reply With Quote
Old 03-05-2009, 06:53 PM   #5
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
the second option in the Look & Feel section of the EPUB conversion dialog is base font size
so size 12 there is equal to size 12 in the LRF conversion? because I could have sworn I had the base font set to 12 but the output was much smaller/different. When I get home I'll have to double check my settings. I did the epub conversion late last night and didn't have the chance to check the story until I got to work.

Thanks for your help,
Amalthia is offline   Reply With Quote
Advert
Old 03-05-2009, 07:13 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No its not one of them is px and one of them is pt
kovidgoyal is offline   Reply With Quote
Old 03-05-2009, 07:21 PM   #7
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
No its not one of them is px and one of them is pt
Oh....okay that could be what's throwing me off I'm guessing the epub is px?

Okay I can try and adjust from there. now that I know what's going on.

Though I'm curious as to why they have different scales?
Amalthia is offline   Reply With Quote
Old 03-07-2009, 06:21 PM   #8
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
No its not one of them is px and one of them is pt

I'm a bit confused...These are the settings I have for Epub


Click image for larger version

Name:	Epub settings.JPG
Views:	1548
Size:	183.1 KB
ID:	25208

and this is the setting I have for LRF

Click image for larger version

Name:	LRF settings.JPG
Views:	956
Size:	197.8 KB
ID:	25207

Both show pts as a font size?

So how can you tell which one is px??

And this is what I have for mobi.

Click image for larger version

Name:	mobi settings.JPG
Views:	795
Size:	183.2 KB
ID:	25216

Last edited by Amalthia; 03-07-2009 at 06:31 PM. Reason: Pictures too large first time, and forgot Mobi settings...
Amalthia is offline   Reply With Quote
Old 03-07-2009, 07:00 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
hmm my mistake, i thought the lrf conversion used px, but apparently not. the font rescaling algorithm for two conversions is different, which accounts for the difference you see. i'm afraid you will just have to experiment with each format to figure out which size works best for each
kovidgoyal is offline   Reply With Quote
Old 03-07-2009, 07:39 PM   #10
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
hmm my mistake, i thought the lrf conversion used px, but apparently not. the font rescaling algorithm for two conversions is different, which accounts for the difference you see. i'm afraid you will just have to experiment with each format to figure out which size works best for each
it's good to know I'm not going crazy.

Well I removed my SD card in order to experiment today now that I have some time. I hadn't had the chance to add any epub docs that I created to my device until earlier this week. I had assumed size 12 font was the same for each of the conversions.

Would it be safe to assume the mobi size 12pt may be different from the LRF and Epub?
Amalthia is offline   Reply With Quote
Old 03-07-2009, 07:49 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes basically each output format at the moment performs its own font size rationalization. calibre's conversion subsystem is being overhauled so this will change once that's done.
kovidgoyal is offline   Reply With Quote
Old 03-09-2009, 03:36 PM   #12
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,165
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
yes basically each output format at the moment performs its own font size rationalization. calibre's conversion subsystem is being overhauled so this will change once that's done.

I tested the different fonts using the built in Base Font and it seemed to have no affect on the font within the epub book I was making.

However, when I added

p {margin-top: 0pt; margin-bottom: 0pt; padding: 0pt; text-indent: 15pt; font-size: 12.5pt;}

to the css override box...that did seem to affect the font size within the epub document. Strangely 12.5pt worked just fine and gave me something rather similar in size to the LRF files I've been creating.

I still don't get how the LRF file is 1200 pages long and the Epub says it's only 450 pages long...but I figured I can ask that in the Epub thread.
Amalthia is offline   Reply With Quote
Old 02-15-2010, 03:23 PM   #13
carbonize
Connoisseur
carbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beautycarbonize does all things with Zen-like beauty
 
carbonize's Avatar
 
Posts: 60
Karma: 32262
Join Date: Feb 2010
Location: Bristol, UK
Device: Sony PRS-600
Dragging up and old topic I know.

Unless I am mistaken an LRF works out the number of pages based upon how many screens it will take to display the whole book. Change the font size and the number of pages will change. In an ePub file the pages are defined by a set number of lines at the default font size and this is usually about 3 screens worth of text at medium setting.

BTW when setting your font size to 12.5pt how many lines of text at medium zoom are you getting on your PRS-505?
carbonize is offline   Reply With Quote
Old 08-24-2010, 05:51 PM   #14
BrimBooks.com
BrimBooks.com
BrimBooks.com began at the beginning.
 
BrimBooks.com's Avatar
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Location: Panama City, Florida USA
Device: Sony Reader Daily Edition
Smile epub font-size publishing problem

Hi from BrimBooks.com:
We're new to the forum. As a family small press, we convert our books from .doc files to .epub files using the 2BrightSparks.com software: InfohesiveEP 3.2.0.0. However, when I download our .epub books to my new Sony Reader Daily Edition, everything is fine except I can't use the font size-change function. I'm not a technology specialist, but I suspect there is some code in the XHTML version of the file that is blocking the Reader's ability to modify the font size. We don't have that problem in our tests using the Nook Reader. Any suggestions would be appreciated.
Thanks, Michael Brim (writing as Michael Goldcraft) BrimBooks.com, Panama City, Florida My Facebook page is: Michael Shannon Brim, and friends our invited.
BrimBooks.com is offline   Reply With Quote
Old 01-03-2011, 12:27 PM   #15
tamahome
Member
tamahome began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2011
Device: ipad
Someone correct me if I'm wrong, but font sizes shouldn't be hard coded in epubs. I just had to take the font size out of the css code in a free epub from the Phoenix Pick Catalog (I used Sigil). Otherwise I couldn't resize it in Stanza for iPad. If you convert epub->epub in Calibre, it will fix it as well.

Last edited by tamahome; 01-03-2011 at 12:50 PM.
tamahome is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-300 Font size question cromulent742 Sony Reader 6 07-25-2010 01:01 PM
epub font size on 505 Waltarro Calibre 0 03-05-2010 01:13 AM
Opus zoom/font size question Huxley Introduce Yourself 1 12-08-2009 05:35 PM
Increase font size of epub? pennpin PocketBook 0 11-25-2009 06:41 PM
Font type / size question .. askyn Fictionwise eBookwise 6 06-02-2009 11:34 AM


All times are GMT -4. The time now is 07:37 AM.


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