killercup / trpl-ebook

UNMAINTAINED
http://killercup.github.io/trpl-ebook/
478 stars 56 forks source link

Update epub.css - Remove code/block font sizing. #31

Open flukejones opened 8 years ago

flukejones commented 8 years ago

Remove code sizing so that the reader controls it. This makes it far more legible on a Kindle for instance.

killercup commented 8 years ago

Thanks. Someone actually asked me to decrease to code font size when I initially published the ebook version, because on most readers, code will otherwise be split into a lot of short lines (spanning several pages). I'll see if this is still the case on the devices I own when I prepare the next version.

flukejones commented 8 years ago

I'll be interested in what you find. For me I use the Kindle Paperwhite. Small font sizes for code make it completely unreadable; I either increase the std font size to compensate, thus increasing regular text to be far too large, or as I've done, set it all to be aprox same size which seems to work great.

If it does become an issue, I think 0.95em is about the minimum for readability for code on the Kindle.

Edit: I've inspected a few ebooks made by publishers such as O'Reily, they appear to most commonly use font-size: 85%; and font-family: "Ubuntu Mono", monospace;. This usually looks okay, but in my opinion it is still a bit small for an e-ink display where the smaller text isn't so well defined.