View Single Post
Old 06-05-2023, 08:14 PM   #13
spartanhooah
Member
spartanhooah began at the beginning.
 
Posts: 19
Karma: 10
Join Date: May 2020
Device: Kobo Clara HD
I suspect my CSS is not up to snuff. Here's what I have in the style file:
Code:
.pre {
  font-family: monospace;
}
@font-face {
  font-family: monospace;
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/fonts/cour.ttf);
}
@font-face {
  font-family: monospace;
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/fonts/courbd.ttf);
}
@font-face {
  font-family: monospace;
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/fonts/couri.ttf);
}
@font-face {
  font-family: monospace;
  font-weight: bold;
  font-style: italic;
  src: url(res:///Data/fonts/courbi.ttf);
}
What am I missing?

Also, the regular epub format doesn't seem to play very nicely. As I mentioned earlier, trying to use the table of contents (either in the book or the reader's ToC function) just locks up the reader for ~30 seconds, after which it automatically restarts. If this is because it's an epub vs a kepub, then how can I get the font to work correctly in a kepub?
spartanhooah is offline   Reply With Quote