Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2018, 07:25 AM   #1
reinsley
Enthusiast
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 30
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperMate
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, 09: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: 381
Karma: 1000002
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, 12:32 PM   #3
retiredbiker
Connoisseur
retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.retiredbiker is faster than slow light.
 
retiredbiker's Avatar
 
Posts: 66
Karma: 29896
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Ubuntu, 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, 01:21 PM   #4
Brett Merkey
Not Quite Dead
Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!Brett Merkey , Klaatu Barada Niktu!
 
Posts: 62
Karma: 5368
Join Date: Jul 2015
Device: Paperwhite 3
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 01:37 PM.
Brett Merkey is offline   Reply With Quote
Old 11-01-2018, 02: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: 381
Karma: 1000002
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, 08:58 AM   #6
reinsley
Enthusiast
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 30
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperMate
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, 03: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: 1,165
Karma: 1425316
Join Date: May 2016
Device: Samsung tab s , fire HDX 8.9, fire hd 8
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 03:28 PM.
stumped is offline   Reply With Quote
Old 11-24-2018, 06:29 AM   #8
reinsley
Enthusiast
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 30
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperMate
@stumped

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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