View Single Post
Old 11-03-2017, 08:05 PM   #12
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by kovidgoyal View Post
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 View Post
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.
jackie_w is offline   Reply With Quote