View Single Post
Old 04-20-2026, 10:36 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,832
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by rockster View Post
In preferences > fonts there are four fonts options:

Serif family
Sans-serif family
Monospace family
Standard font

Why so many options and which part of these four options is controlling the body text of the ebook?
Maybe NONE. Those are the settings to apply for unstyled (? I assume this is when the CSS has not called out a font to use. ) Standard may apply to the Viewer controls, not the book.
eg.
Code:
@font-face { font-family: "Sampler"; font-style: normal; font-weight: normal; src:url(../Fonts/samplenormal.ttf); }
The first 3 are the GENERIC versions (usually as a fall back when the specific face is not available on a device)
The publisher picks a look for the text (assumes the device is set to Publishers and not a specific device font). Headings may be sans. Machine screens may be Mono, Letters may be serif. The stylesheet indicates what to use for that case. The viewer setting is for when the choice (in the CSS or styles) is missing or unavailable.

Serif have little flourishes (tails) on some letters, sans-serif has none. Both of these are variable width fonts. Monospace is like an old typewriter. all letters use the pitch (eg 10cpi)
Setting a font in <body> is the base , But that never override what is set fo a <p>, <div>, <h#>, <span> ...
IIRC it is not considered a good practice to set a 'font-family' in <body>
theducks is offline   Reply With Quote