View Single Post
Old 02-10-2020, 08:47 PM   #38
joe 1
Junior Member
joe 1 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2020
Device: Kindle
Quote:
Originally Posted by Hitch View Post
When you say that you are "seeing monospace fonts," what, exactly, do you mean and on what device(s) or software?

Hitch
Yeah, sorry, I should have clarified. I'm doing testing with the IOS Kindle app. I created a simple epub in calibre, and included the following block of text:
Test
iiii
OOOO
TEST

The second and third lines are formatted as monospace, so it's easy to tell visually if it really is being rendered in a monospace font. I converted my epub to mobi, and emailed it to my Kindle account. The doc looks fine -- I see my monospace fonts where they should be.

Next, I used kindlegen to convert my epub to mobi, and again emailed it to my Kindle acocunt. Now, all the text is the same proportional font -- no monospace anywhere.

I tried opening both mobi files with Kindle Previewer and saw the same result as on my iPhone -- monospace fonts correctly display in the mobi created by calibre, but no monospace fonts in the one created by kindlegen.

This is the css for my monospace section:
Code:
.class_s {
    display: block;
    font-family: "Source Code Pro", monospace
    }
Quote:
Originally Posted by jhowell View Post
A work around for the Kindle Previewer is to use "font-family: 'Source Code Pro', monospace;" instead. I don't know of any fix for Kindle for PC.

I am not sure how Kindle Create comes into this. Could you explain further?
That's exactly the font-family value I'm using..

Whoops, I meant to say kindlegen, not Kindle Create.
joe 1 is offline   Reply With Quote