Actually, let me show you the CSS code to add using calibre to reference the Georgia font in a ePub.
Prior to using this CSS, you must have copied the Georgia font files to a directory named fonts on your 300's root. (The directory does not need to be named fonts, but for this example that is what we will call it.)
Step 1: Copy Georgia font files to the /fonts directory on PRS300
- georgia.ttf
- georgiab.ttf
- georgiai.ttf
- georgiaz.ttf
Step 2: Use calibre to reference the Georgia font files in the /fonts directory
@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/georgia.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/georgiab.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/georgiai.ttf);
}
@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/georgiaz.ttf);
}
body { font-family: "Georgia", serif; }
The last line
body { font-family: "Georgia", serif; } in this example assumes the CSS file(s) in your ePub use the
Body tag to define all the fonts in the book. Unfortunately that is rarely the case, so you will have to override any additional tags within the CSS that refer to a
font-family.
BTW, in the URL references like
src: url(res:///Data/fonts/georgia.ttf); the reference
///Data/ is the root of the PRS300.