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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2012, 12:57 PM   #1
MacEachaidh
Browser
MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.
 
MacEachaidh's Avatar
 
Posts: 578
Karma: 445872
Join Date: Apr 2010
Location: Australia
Device: iRiver Story, Kobo Touch, Kobo Aura HD
Help please with dropcap/font issue

I'm having a problem with a commercial epub file that's formatted with embedded fonts and a dropped cap at the start of every chapter. Neither is showing up on my Touch, which is running the latest firmware with no hacks or customisations, and I can't figure out why.

Because I'm trying to learn HTML/CSS formatting for epub (and also because I want it to work!), I'd be grateful if anyone has any insight into why this file won't display as designed on my KT.

It works fine on my Win7 PC in both ADE and the latest version of Sigil. But on my KT, I can't get the embedded fonts to show up, no matter what font setting I choose (even after I copied the fonts in question into a fonts folder on the KT), and the dropped cap shows up with the spacing as dictated in the CSS, but the cap itself appears unbolded and the same size as the regular body text.

I've attached a drastically cut-down copy of the book in question, with the fonts and CSS included, just the opening page of the first chapter that uses a dropped cap, and all but the necessary graphics removed. I'd be grateful for any observations people can make as to why this isn't working on my Kobo.

Thanks!

(p.s. Not relevant to my enquiry, but:
The book in question is "Into Thin Air" by Jon Krakauer, a first-hand account of a terrible day in May 1996, when disaster descended onto four separate expedition teams at or near the summit of Mount Everest, killing a dozen climbers. Tragic story, but I thoroughly recommend it for a gripping real-life read and a cautionary tale on the perils of hubris and taking Nature for granted.)
Attached Files
File Type: epub Dropcap sample.epub (1.52 MB, 48 views)
MacEachaidh is offline   Reply With Quote
Old 05-11-2012, 01:43 PM   #2
BensonBear
Enthusiast
BensonBear began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2012
Device: Kobo Touch
Quote:
Originally Posted by MacEachaidh View Post
the dropped cap shows up with the spacing as dictated in the CSS, but the cap itself appears unbolded and the same size as the regular body text.
It doesn't work for me either, but note that the dropcaps style has an absolute size for font-size. That really is not correct if you are going to be changing overall font-size in the document. I changed it to 400% and then it worked just fine on the Kobo. I didn't look into the issue of font-weight but prima facie I don't see where it is set to bold, so that should be easily fixable as well.
BensonBear is offline   Reply With Quote
 
Enthusiast
Old 05-11-2012, 02:07 PM   #3
MacEachaidh
Browser
MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.
 
MacEachaidh's Avatar
 
Posts: 578
Karma: 445872
Join Date: Apr 2010
Location: Australia
Device: iRiver Story, Kobo Touch, Kobo Aura HD
Thanks for looking at it, BB.

Quote:
Originally Posted by BensonBear View Post
It doesn't work for me either, but note that the dropcaps style has an absolute size for font-size. That really is not correct if you are going to be changing overall font-size in the document. I changed it to 400% and then it worked just fine on the Kobo.
Ahh, OK, that's helpful. So, for my own learning: it's better to use, say, percentages or em measurements than font sizes in points? I can see how that makes sense.

Thanks again!


(I've got a couple of teach-yourself books on HTML and CSS generically, but does anyone know of any that deal with how these are applied specifically to ebooks?)

Last edited by MacEachaidh; 05-11-2012 at 02:09 PM.
MacEachaidh is offline   Reply With Quote
Old 05-11-2012, 02:19 PM   #4
BensonBear
Enthusiast
BensonBear began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2012
Device: Kobo Touch
Quote:
Originally Posted by MacEachaidh View Post
Ahh, OK, that's helpful. So, for my own learning: it's better to use, say, percentages or em measurements than font sizes in points? I can see how that makes sense.
I really don't know, I have not studied these issues of typesetting, but indeed it seems only logical that one would set some base sizes (ideally, just one) and then define other sizes in terms of those sizes. I suspect a lot of renderers can figure out what a person wants even if it is not done this way, but looks like the Kobo renderer fails. You will have to adjust the other absolute measures as well, most likely (such as line height).

Quote:
(I've got a couple of teach-yourself books on HTML and CSS generically, but does anyone know of any that deal with how these are applied specifically to ebooks?)
Offhand, can't imagine why there would be much difference. More likely it is just that Kobo and/or other renderers do not do exactly the same thing, because there are lots of complicated little gotcha's all over the place. It's well known that browsers do not do the same thing with the same css or html.
BensonBear is offline   Reply With Quote
Old 05-11-2012, 05:51 PM   #5
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,525
Karma: 42666590
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Check out books from http://www.elizabethcastro.com/

epub straight to the point
html, xhtml, and css: 6th edition
or
XML for the World Wide Web: Visual QuickStart Guide
PeterT is online now   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
Need help with font issue please MattI ePub 4 01-26-2011 07:12 PM
Hacks Font Size Issue relayer250 Amazon Kindle 3 12-30-2009 12:02 AM
Calibre, EPUB and DropCap size jackie_w Calibre 2 11-13-2009 11:44 AM
Strange new Font issue. shighfield Fictionwise eBookwise 2 08-22-2009 11:25 AM
font issue msl Calibre 5 12-13-2008 01:23 PM


All times are GMT -4. The time now is 07:28 PM.


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