Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2014, 12:55 AM   #1
ATimson
Evangelist
ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.
 
ATimson's Avatar
 
Posts: 456
Karma: 1044878
Join Date: Apr 2009
Device: Kindle Paperwhite 4
Change the default font when using publisher font?

There are some books where publisher fonts are used for only some content, and the bulk of the book has an unspecified font. It looks like the Kindle - or at least the Paperwhite 2 - will default to Helvetica in that case.

Is there any way to change that default? I can turn off publisher font, or rip the books apart if I really need to, but I'd rather just change the fallback be Baskerville, or at least something with serifs, if possible.
ATimson is offline   Reply With Quote
Old 06-20-2014, 10:53 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@ATimson: Technically, you can with the Fonts Hack, although, if it's falling back to Helvetica or Futura, it is strongly discouraged to override this family (sans), because it's used basically everywhere in the UI, and there's a very high chance that bad things *will* happen if you don't take precautions (like never rebooting w/ a sans override, never switching to USBMS w/ a sans override, preferably doing it with an FT override active, and w/ a shell open in case things go boom, so, not terribly safe or practical).

A much safer solution is to fix the CSS of the affected books w/ Calibre.

Last edited by NiLuJe; 06-20-2014 at 10:56 AM.
NiLuJe is offline   Reply With Quote
Advert
Old 06-20-2014, 11:05 AM   #3
shamanNS
Guru
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 885
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
It's a known bug for KF8 books read on PW1 and PW2. If book uses some embedded fonts only for things like headings and font-family is not declared for body (nor paragraph) CSS class, PW1 and PW2 fallback to Helvetica/sans serif instead to Caecilia/default serif font.

So you must edit ebook file to add body {font-family: serif;}, that fixes the problem. That was font related bug #1

Font related bug #2 that also relates to body and p tag CSS code is the one where the book gets stuck with Caecilia font and changing to another built-in font in Aa menu does nothing. That is what you get when there is no font-family for body and p tags CSS contains crap like "Times" (or any other referenced but not embedded font family) or even just font-family: serif;.

Conclusion: always define book's default font in body tag

Maybe it would be possible to use Font Override part of @NiLuJe's font hack to temporarily override sans serif font with a serif one, while you are reading problematic book, and that way to avoid having to edit the ebook file itself. But you should probably just stick to editing files. It easier and safer option.

EDIT: I'm to slow.

Last edited by shamanNS; 06-20-2014 at 11:11 AM.
shamanNS is offline   Reply With Quote
Old 06-20-2014, 11:08 AM   #4
ATimson
Evangelist
ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.ATimson ought to be getting tired of karma fortunes by now.
 
ATimson's Avatar
 
Posts: 456
Karma: 1044878
Join Date: Apr 2009
Device: Kindle Paperwhite 4
Thanks, both of you. What I figured, if not what I was hoping for. Silly publishers.
ATimson is offline   Reply With Quote
Old 06-20-2014, 11:25 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Simon and Shuster put the font family classes in all the CSS declarations that use them; none in body.
JSWolf is online now   Reply With Quote
Advert
Old 06-20-2014, 11:44 AM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@shamanNS: Thanks for the writeup on the CSS tweaks needed, I was way too lazy to research those .
NiLuJe is offline   Reply With Quote
Old 06-20-2014, 12:56 PM   #7
shamanNS
Guru
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 885
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
Quote:
Originally Posted by JSWolf View Post
Simon and Shuster put the font family classes in all the CSS declarations that use them; none in body.
Simon and Shuster should read KDP formatting guide :-D
shamanNS is offline   Reply With Quote
Old 06-20-2014, 03:59 PM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Oookay. Weird twist: The Code2000 override that I recently added to the Fonts Hacks worksaround this bug (the font used to override Code200 is used instead of Helvetica).

Huh.

While new & relatively untested, it should be mostly safe, but it's obviously only applicable if you don't actually rely on a wide unicode coverage and/or complex script layout.

That said, I'm looking into 'fixing' this in a less intrusive (& relatively safe) way, now that I managed to reproduce a testcase (thanks, ShamanNS ;p).

EDIT: Nope, didn't manage to do it in a better way. So, yep, the Code2000 override does the trick without touching the UI (and thus *should* be mostly safe).

Last edited by NiLuJe; 06-20-2014 at 06:25 PM.
NiLuJe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware 3.4: Default to publisher font on KF8? MorningSong Amazon Kindle 2 10-16-2012 03:18 PM
Hacks First post here. Can I change the size of the default font set? johnleo Amazon Kindle 3 08-09-2012 01:23 PM
Touch "Publisher default" Font family in Nook Indigo121 Barnes & Noble NOOK 1 03-15-2012 02:19 PM
PRS-T1 How to change default font ? Filo Sony Reader Dev Corner 1 02-11-2012 07:48 PM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 10:57 PM


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


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