View Single Post
Old 04-17-2010, 12:41 PM   #6
EnergyLens
Hack
EnergyLens began at the beginning.
 
Posts: 34
Karma: 12
Join Date: Dec 2009
Device: Kobo Aura HD, Kindle Paperwhite
Thumbs down

This worked for the Calibre Viewere, but not for the Sony Reader:
Code:
    def preprocess_html(self, soup):
        if soup.pre:
            soup.pre["style"] = 'font-family: courier'
        return soup
I think I just need to learn which proportional/fixed-width fonts are actually supported by the reader, or how to include a font in the .epub that will work on the reader
EnergyLens is offline   Reply With Quote