11-13-2009, 11:38 AM | #1 |
Grand Sorcerer
Posts: 6,199
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Calibre, EPUB and DropCap size
I have been experimenting with adding DropCaps to my ebooks - courtesy of some of the advice in the EPUB forum - but am having problems controlling the size of the DropCap in Calibre's EPUB conversion.
My EPUB is displaying DropCaps OK but they are not as large as specified in my source CSS. For example: Source CSS: .dropcap { CSS inside Calibre EPUB - conversion Base Font Size 10ptfont-size: 4em; font-weight: bold; float: left; line-height: 1em; margin-top: -0.01em; margin-right: 0.1em } .dropcap { CSS inside Calibre EPUB - conversion Base Font Size 12ptfloat: left; font-size: 2.4em; font-weight: bold; line-height: 1em; margin-right: 0.1em; margin-top: -0.01em } .dropcap { CSS inside Calibre EPUB - conversion Base Font Size 8ptfloat: left; font-size: 2em; font-weight: bold; line-height: 1em; margin-right: 0.1em; margin-top: -0.01em } .dropcap { As you can see the CSS values are retained pre/post conversion on all items except the font-size.float: left; font-size: 3.2em; font-weight: bold; line-height: 1em; margin-right: 0.1em; margin-top: -0.01em } When converted at Base Font Size 10 or 12 the DropCap has a depth of just under 2 lines of body text. When converted at Base Font Size 8 the DropCap has a depth of 2-3 lines of body text. The trouble with this setting is that I have to set the PRS-505 magnification to Large to read the body text which doesn't give enough flexibility for poor reading conditions. My eventual aim is to set the source CSS font-size to a value where I get a DropCap depth of exactly 2 lines (or close enough) but until I can figure out what's happening during the conversion I suspect I'm not going to get there. Please can anyone help? |
11-13-2009, 11:42 AM | #2 |
creator of calibre
Posts: 43,828
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because calibre rescales font sizes. There's a section on how rescaling works in the user manual. If you are sure you dont want font size rescaling, you can just turn it off in the conversion options.
|
Advert | |
|
11-13-2009, 11:44 AM | #3 |
Grand Sorcerer
Posts: 6,199
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
That was quick! I'll give that a try.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem converting pdf to epub (size) using calibre | abadguy | 6 | 03-23-2012 05:33 AM | |
ePub file size | Adjust | ePub | 16 | 10-27-2010 11:55 AM |
v0.7.2 increase in epub file size? | skb | Calibre | 2 | 06-12-2010 05:12 PM |
Managing epub size/conversion | sircastor | ePub | 1 | 12-19-2009 12:35 AM |
Increase font size of epub? | pennpin | PocketBook | 0 | 11-25-2009 05:41 PM |