Thread: JBPatch
View Single Post
Old 03-06-2019, 08:21 PM   #1851
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by PoP View Post
Reasonable. Not holding my breath, I did...*write to amazon*...
In the mean time, inspired by

Quote:
Originally Posted by shamanNS View Post
Someone with actual Java skills could probably do it. Most likely place to look at would be "YJReader-impl.jar" file and inside that there is a class "YJBookController.class".

It contains references to "font.size.mapping" inside method named "axO":

...


The code is from firmware 5.9.7 for PW3.

...

So, the only thing that needs to be changed is line 15 of init method of "YJBookController.class"

before change:
Code:
iconst_0
putfield com/amazon/ebook/booklet/yjreader/impl/YJBookController/debug Z
after change:
Code:
iconst_1
putfield com/amazon/ebook/booklet/yjreader/impl/YJBookController/debug Z
...
I patched my PW3 5.10.3 similarly:

In this firmware version, references to "font.size.mapping" are inside method named "ayT"
Spoiler:
Click image for larger version

Name:	method ayT1.png
Views:	349
Size:	127.2 KB
ID:	170059


and the changes have to be made in method named init at line 27
Spoiler:
Click image for larger version

Name:	method init line 271.png
Views:	341
Size:	144.7 KB
ID:	170060


Now,
/mnt/us/CONTENT_FONT_RAMP
/mnt/us/CONTENT_CJK_FONT_RAMP
/mnt/us/CONTENT_INDIC_FONT_RAMP
properly trigger size overrides in KFX ebooks
PoP is offline   Reply With Quote