View Single Post
Old 06-05-2023, 12:47 PM   #1
spartanhooah
Member
spartanhooah began at the beginning.
 
Posts: 19
Karma: 10
Join Date: May 2020
Device: Kobo Clara HD
Unhappy How to get preformatted/code font to stick

I have an epub that has code snippets that are displaying as just smaller version of the regular font face. When I opened the file in Calibre, I noticed that the only CSS applied to the
Code:
pre
class was
Code:
font-size: x-small;
. I added
Code:
font-familly: Courier;
and this seems to have fixed it in Calibre's renderer, but on my Clara HD the font is still small and a non-monospaced serif font. How can I update the file (and/or my Kobo) so that the code snippets are displayed properly?
spartanhooah is offline   Reply With Quote