View Single Post
Old 05-16-2025, 10:21 AM   #15
mgrimace
Connoisseur
mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.mgrimace ought to be getting tired of karma fortunes by now.
 
mgrimace's Avatar
 
Posts: 93
Karma: 1255124
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kobo Libra Colour, Kobo Libra 2, Kobo Libra H2O, Kindle Oasis 9
Quote:
Originally Posted by DNSB View Post
You should not change the @font-face declarations. Only in the body of the CSS. If the font is being used as the body font, I just place it in the body declaration.

Code:
@font-face {
    font-family: 'Charis SIL';
    font-weight: normal;
    font-style: normal;
    src: url('../Fonts/CharisSILR.ttf');
}

@font-face {
    font-family: 'Charis SIL';
    font-weight: normal;
    font-style: italic;
    src: url('../Fonts/CharisSILI.ttf');
}

@font-face {
    font-family: 'Charis SIL';
    font-weight: bold;
    font-style: normal;
    src: url('../Fonts/CharisSILB.ttf');
}

@font-face {
    font-family: 'Charis SIL';
    font-weight: bold;
    font-style: italic;
    src: url('../Fonts/CharisSILBI.ttf');
}

body {
  display: block;
  font-family: "Charis SIL", serif;
  font-size: 1em;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  text-indent: 0;
  widows: 1;
  orphans: 1;
}
I'm not sure I fully understand what to do with that (my error, I don't understand CSS coding/formatting). As far as I can tell there is nothing that says '@Font-Face' in any of the book files for this book/series, but I genuinely don't understand CSS and the formatting so I could be missing something obvious.

Everything I did the find/change for font-family was labelled either 'style' or 'justify'.

EDIT my bad, I see that there is @font-face in page_styles.css, I totally missed that. Here's what it looks like:

Code:
@page {
    margin-bottom: 5pt;
    margin-top: 5pt
    }
@font-face {
    font-family: "oppjfhltckennerleypro";
    src: url(fonts/00001.otf)
    }
@font-face {
    font-family: "oppjfiltckennerleyproitalic";
    src: url(fonts/00002.otf)
    }

Last edited by mgrimace; 05-16-2025 at 10:24 AM. Reason: Missed something
mgrimace is offline   Reply With Quote