Quote:
Originally Posted by kovidgoyal
Hmm thinking about it, I realize that I do want books that dont specify any fonts to default to sans-serif.
|
I'm the opposite. I don't ever want sans-serif to display unless I've explicitly set it in a CSS class. I'd never use it for my main body text.
Quote:
Originally Posted by kovidgoyal
But it should be easily overridable, by either a user stylesheet or styles in the book itself. I guess the best way to do that would be to add an extra stylesheet at the top with
Code:
html { font-family: sans-serif }
Then if either the user stylesheet or the book stylesheet specify any fonts they will override the default.
|
When you say 'add an extra stylesheet at the top', do you mean somewhere in the calibre prefs? As a Kobo user I'd never want to add 'font-family:serif' in the book CSS files because in many cases it would stop the on-device font selection feature working properly. In Kobo-land font-family:serif is equivalent to enforcing font-family:Georgia.