Quote:
Originally Posted by rockster
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>