07-03-2017, 03:46 AM | #1 |
Fanatic
Posts: 536
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Help: Changing the font in a book (even to standard)
Hello, I have a problem with fonts in an ebook (azw3).
In the ebook editor I see no font in the fonts list - both editing it as an epub or as azw3. Yet the ebook is displayed both by the kindle and the calibre reader with an ugly monospaced font, very disturbing to read. I would like to change it reverting the book to a "no font specified", so that the kindle uses its default ones, but I am unable to. What I can't understand is WHERE the font might be specified. In the Fonts list it does not appear. In the manage fonts dialog, a "monospace" font-family appears but only if I edit the epub version (not in the azw3). That said, I find absolutely no specification of the font in the .css files (see attachment). The only thing that refers to it is in this: Code:
.calibre4 { display: block; font-family: monospace; font-size: 0.88889em; line-height: 1.2; text-align: left; text-indent: 0; white-space: pre-wrap; margin: 0 } I have checked the html files as well, but no font is specified in the tags. For example, see: Code:
<html xmlns="http://www.w3.org/1999/xhtml"> <head><meta charset="UTF-8"/> <title>Sconosciuto</title> <link href="../styles/0001.css" rel="stylesheet" type="text/css"/> <link href="../styles/0003.css" rel="stylesheet" type="text/css"/> </head> <body class="calibre"> <h2 class="center2" id="heading_id_2"><em class="calibre5"><strong class="calibre1">PROLOGO</strong></em></h2> <pre class="center3">*</pre> <pre class="right"><em class="calibre2">Valico del Gran San Bernardo, Alpi Pennine</em></pre> <pre class="right"><em class="calibre2">Maggio 1800</em></pre> <pre class="calibre4"> </pre> <pre class="calibre4">Una folata di vento fece mulinare un turbine di neve intorno alle zampe di Styrie, [...]</pre> Can somebody please help? Thank you so much! Last edited by Ruskie_it; 07-03-2017 at 03:53 AM. |
07-03-2017, 03:49 AM | #2 |
Fanatic
Posts: 536
Karma: 1000000
Join Date: Dec 2011
Location: Rome, Italy
Device: Kindle PW5, Kindle PW4, Kindle 4 NT
|
Just to give you an idea, the attachment below shows how it looks (in the calibre previewer, but it's the same on actual kindle).
|
Advert | |
|
07-03-2017, 05:32 AM | #3 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The book appears to be formatted with the <pre> tag instead of <p>. The default for <pre> is to use a monospaced font, and to preserve whitespace.
As well as removing the font-family:monospace and white-space: pre-wrap properties, you could try adding something like this to the stylesheet: Code:
pre { font-family: inherit; white-space: normal; } |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle DX standard font | joblack | Amazon Kindle | 1 | 04-02-2015 12:44 PM |
Sony Reader - Standard Font | Pax | Sony Reader | 3 | 06-03-2014 05:24 AM |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
Changing font size in Book Details Comments | BookJunkieLI | Library Management | 5 | 02-13-2012 09:42 AM |
Classic standard Nook not changing font on a book | RAH | Barnes & Noble NOOK | 6 | 01-07-2011 09:55 AM |