Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 6 commits into from

Conversation

flukejones
Copy link

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

Remove code sizing so that the reader controls it.
@killercup
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants