View Single Post
Old 01-11-2017, 03:14 PM   #43
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,470
Karma: 84000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Analogus View Post
Could You give me one more hint for doint the 'c-flag-thing'?
This is based on version 5.8.7 build 3095600028 for the PW2 in
/opt/amazon/ebook/lib/YJReader-impl.jar (com/amazon/ebook/booklet/yjreader/impl/YJBookController.java)

Code:
package com.amazon.ebook.booklet.yjreader.impl;
public class YJBookController
    public YJBookController() {
        YJBookController a2;
        YJBookController yJBookController = a2;
        YJBookController yJBookController2 = a2;
        a2.C = null;
        YJBookController yJBookController3 = a2;
        yJBookController2.g = new J();
        yJBookController.c = false;		<---- change this to enable CONTENT_FONT_RAMP
        yJBookController2.D = new V(a2);
        yJBookController.m = new h();
    }

	...
	
    public float[] TPD() {
        float[] a2;
        YJBookController b2;
        if (b2.c && (a2 = j.XRD((String)"/mnt/us/CONTENT_FONT_RAMP", (int)b2.VCA().length)) != null && a2.length > 0) {
            return a2;
        }
        return (float[])ResourceBundle.getBundle("com.amazon.ebook.booklet.yjreader.impl.resources.YJReaderImplResources").getObject("font.size.mapping");
    }
ETA: You could also patch the default values in YJReaderImplResources

Edit 2: CONTENT_FONT_RAMP still does not work in firmware version 5.8.8. The above code in the jar file is unchanged.

Last edited by jhowell; 04-04-2017 at 10:08 PM. Reason: Add info about 5.8.8
jhowell is offline   Reply With Quote