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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2014, 01: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: 425
Karma: 1044878
Join Date: Apr 2009
Device: nook STR, iPod Touch 3G
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, 11: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: 5,122
Karma: 4999999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@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 11:56 AM.
NiLuJe is online now   Reply With Quote
 
Advertisement
Old 06-20-2014, 12:05 PM   #3
shamanNS
Connoisseur
shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.
 
Posts: 62
Karma: 45872
Join Date: Feb 2010
Location: Serbia
Device: Kindle Paperwhite WiFi
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 12:11 PM.
shamanNS is offline   Reply With Quote
Old 06-20-2014, 12:08 PM   #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: 425
Karma: 1044878
Join Date: Apr 2009
Device: nook STR, iPod Touch 3G
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, 12:25 PM   #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: 37,836
Karma: 18755150
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Simon and Shuster put the font family classes in all the CSS declarations that use them; none in body.
JSWolf is offline   Reply With Quote
Old 06-20-2014, 12:44 PM   #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: 5,122
Karma: 4999999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@shamanNS: Thanks for the writeup on the CSS tweaks needed, I was way too lazy to research those .
NiLuJe is online now   Reply With Quote
Old 06-20-2014, 01:56 PM   #7
shamanNS
Connoisseur
shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.
 
Posts: 62
Karma: 45872
Join Date: Feb 2010
Location: Serbia
Device: Kindle Paperwhite WiFi
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, 04: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: 5,122
Karma: 4999999
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
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 07:25 PM.
NiLuJe is online now   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
Firmware 3.4: Default to publisher font on KF8? MorningSong Amazon Kindle 2 10-16-2012 04:18 PM
Hacks First post here. Can I change the size of the default font set? johnleo Amazon Kindle 3 08-09-2012 02:23 PM
Touch "Publisher default" Font family in Nook Indigo121 Barnes & Noble NOOK 1 03-15-2012 03:19 PM
PRS-T1 How to change default font ? Filo Sony Reader Dev Corner 1 02-11-2012 08:48 PM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 11:57 PM


All times are GMT -4. The time now is 03:05 PM.


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