View Single Post
Old 05-15-2025, 08:14 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,324
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
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;
}
DNSB is offline   Reply With Quote