Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2018, 06:25 AM   #1
reinsley
Connoisseur
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 65
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperWhite
Kindle PaperWhite font checkboxes are inactive

Gents,

Concerning a Kindle PaperWhite, I have a font issue with one book.
I select any font checkbox (on the Kindle), there is no font change.
These options are working well with the other books.

I presume it's related to a weak HTML code on this specific book.
But what is the line to add or to remove in the editor ?

I appreciate any help, I don't know what to search for. I made some comparison, but it's tricky.

TIA
reinsley is offline   Reply With Quote
Old 11-01-2018, 08:46 AM   #2
JimmyR
ɴₐɴ
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
JimmyR's Avatar
 
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
Most likely a font-family declaration in a CSS file.

For a quick fix, try a conversion with the following option enabled:

Convert > Look & Feel > Styling
Under Filter Style Information check "Fonts". That will remove the "font-family" property from the CSS.
JimmyR is offline   Reply With Quote
Old 11-01-2018, 11:32 AM   #3
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
Over time, I've had so much trouble with this on my Kindles that now whenever I edit a book, I just take out all the fonts and references to them. I have a saved regex search that finds "font-family.*?;" and replaces it with nothing in all style files.

Once in a while, if a book contains a bunch code or typewriter text or something, I will allow a "font-family: sans-serif;" line, and the Kindle seems OK with that.
retiredbiker is offline   Reply With Quote
Old 11-01-2018, 12:21 PM   #4
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
I agree with the comments that Kindle's problem in this regard is partly a too rigid specification of fonts in the style file. There is a Calibre tool that takes care of this, not only wiping out all font-family references but also @font-face declarations and any embedded font files in the book directories:

Edit window > Tools > Manage Fonts

The tool will flexibly allow you to retain certain fonts, or generic sans-serif, etc. while deleting the rest. I use Manage Fonts so often, I keep it on the main edit toolbar.

Last edited by Brett Merkey; 11-01-2018 at 12:37 PM.
Brett Merkey is offline   Reply With Quote
Old 11-01-2018, 01:33 PM   #5
JimmyR
ɴₐɴ
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
JimmyR's Avatar
 
Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
^Good Tip. I use the editor often but never used that tool before. I need to dig around in there more.
JimmyR is offline   Reply With Quote
Old 11-02-2018, 07:58 AM   #6
reinsley
Connoisseur
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 65
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperWhite
I appreciate your support.

@JimmyR, thank you, the quick fix has changed one thing.
The default font is more pleasant (azw3 convertion), but it has no effect over Kindle's checkboxes.
Only one default font.

The faulty book :
Css references to font-family : Times.
There is no embedded font in the epub.
(Another book with checkboxes working fine has no embedded font).
Pinch n zoom is ok.

The good book :
Another book from the same serie, has embedded font, and checkboxes are active. I see an extra checkbox Publisher Font. Probably because a TTF font is embedded.

A close CSS code comparison, between two books, may show what the faulty line is. Hard work to crack the conumdrum.

https://mademers.com/the-conumdrum-t...font-handling/

@Brett, your manage tool is a way to explore. Thank you. First I'd like to find the code that inhibates the internal checkboxes.

Best regards
reinsley is offline   Reply With Quote
Old 11-02-2018, 02:25 PM   #7
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
If you want an automated fix, convert to epub in calibre after ticking the option to remove fonts, then convert that epub back to azw3.
To do it manually instead just use calibre editor on azw directly and delete all font family lines in stylesheet

Once there are no explicit font declarations anywhere in the book, then Kindle will let you choose a font.

If there is a line like

font-family: Times

Somewhere in the stylesheet
That is what prevents you choosing something different on the device
So delete them via either of the 2 methods above

Last edited by stumped; 11-02-2018 at 02:28 PM.
stumped is offline   Reply With Quote
Old 11-24-2018, 05:29 AM   #8
reinsley
Connoisseur
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 65
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperWhite
@stumped

Great, it works fine.
Thank you for the fix.
Best regards
reinsley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Paperwhite Font Help Request Bartman711 Amazon Kindle 35 08-31-2013 05:46 PM
fixing a font size (on a Kindle Paperwhite) BeccaPrice Calibre 4 04-27-2013 01:27 PM
Troubleshooting Paperwhite doesn't display publisher font but Kindle 3 does EbokJunkie Amazon Kindle 6 04-16-2013 02:47 PM
Inactive TOC on a Kindle-3? lindsayw Conversion 16 03-10-2011 02:04 AM
kindle DX table of content inactive Maupassant Amazon Kindle 1 02-06-2010 10:44 AM


All times are GMT -4. The time now is 10:43 AM.


MobileRead.com is a privately owned, operated and funded community.