Thread: JBPatch
View Single Post
Old 01-11-2019, 03:48 PM   #1847
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,521
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by mergen3107 View Post
I confirm working margins methods as described by stripe7.
KPW3, 5.9.7, English US.
I modified though not ReaderSDK-impl-en_GB.jar, but just ReaderSDK-impl.jar (which is default for English US).
I put 16.98, 11.32 and 7.55 for three types of margins.
7.55 for top/bottom/progressbar stuff.

One thing I don't understand with MOBI font sizes.
In Mobi-drawing.jar there are 8 font sizes listed, but the reader has a choice of 14. Plus it seems like the font size around 29 is the maximum 14th one, not 8th.
Font size 29 in MOBI is about the same size (visually) as the 14th one in KF8.
Spoiler:

Default FONT_RAMP values for KF8: 6.96 7.92 8.4 9.36 10.56 11.52 12.48 13.92 15.36 17.04 19.20 22.08 25.2 29.28

Default values for MOBI: 7.13 ; 7.81 ; 8.49 ; 9.17 ; 10.53 ; 12.56 ; 16.98 ; 29.2


Where are other 6 sizes?
On 5.9.7, the first 5 sizes for 300dpi are identical for mobi and azw3. Then it goes like this

Mobi azw3

6 7
7 9
8 14

I think the other in between values are interpolated. They couldn't bother with mobi, I guess.
Barty is offline   Reply With Quote