killercup / trpl-ebook

UNMAINTAINED
http://killercup.github.io/trpl-ebook/
478 stars 56 forks source link

Kobo Aura One does not display monospace fonts #45

Open jprupp opened 7 years ago

jprupp commented 7 years ago

When reading the book on a Kobo Aura One, monospace fonts are displayed like regular fonts, therefore the code looks unaligned. The checkmarks that should display on the tables in the first chapters do not show up.

I managed to fix the first problem by editing the ePub file using calibre, changing the font from “monospace” to “DejaVu Sans Mono” and embedding the font using the font management tool. Also, I removed the size restriction on the CSS file that stated that the “pre” element needed to have fonts that were 0.6 em. Perhaps these fixes can be integrated into the book sources somewhat.