Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
`My 24 line spacing values`
I've updated the attachment to post #1 to add the `My 24 line spacing values` patch. Here it is if you want to copy and paste instead of downloading the attachment again:
`My 24 line spacing values` for 4.6.9960 (paste into libnickel.so.1.0.0.patch)
Spoiler:
Code:
<Patch>
patch_name = `My 24 line spacing values`
patch_enable = `no`
# patch_group = `Line spacing values alternatives`
#
## This patch changes the values on the line spacing adjustment slider,
## increasing the number of spacing options from 15 to 24, and allowing
## much narrower spacing values to be set.
#
# save r5, initialise loop counter
replace_bytes = 6C59AC, B9 F5 90 E9 6D A3, A9 46 00 25 ED 00
# loop to load 14 vals from new table
replace_bytes = 6C59B2, D3 E9 00 23 07 F1, 20 46 04 A1 29 44
replace_bytes = 6C59B8, 80 01 20 46, B9 F5 8A E9
replace_bytes = 6C59BC, 61 E9 1C 23 B9 F5, 08 35 70 2D F7 D1
# jump over new table
replace_bytes = 6C59C2, 86 E9 6A A3 D3 E9, 7C E0 00 BF 00 BF
# new table: 14 8-aligned doubles
base_address = 6C59C8
replace_bytes = 0000, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
replace_bytes = 0008, 61 E9 1A 23 B9 F5 7C E9, 00 00 00 00 00 00 F0 3F
replace_bytes = 0010, 67 A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F0 3F
replace_bytes = 0018, 80 01 20 46 61 E9 18 23, 00 00 00 00 00 00 F0 3F
replace_bytes = 0020, B9 F5 72 E9 43 F2 33 33, 00 00 00 00 00 00 F0 3F
replace_bytes = 0028, 4F F0 33 32 C3 F6 F3 73, 00 00 00 00 00 00 F0 3F
replace_bytes = 0030, 07 F1 80 01 20 46 61 E9, 00 00 00 00 00 00 F0 3F
replace_bytes = 0038, 16 23 B9 F5 66 E9 5E A3, 00 00 00 00 00 00 F0 3F
replace_bytes = 0040, D3 E9 00 23 07 F1 80 01, 00 00 00 00 00 00 F0 3F
replace_bytes = 0048, 20 46 61 E9 14 23 B9 F5, 00 00 00 00 00 00 F0 3F
replace_bytes = 0050, 5C E9 00 23 00 22 C3 F6, 00 00 00 00 00 00 F0 3F
replace_bytes = 0058, F8 73 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
replace_bytes = 0060, 61 E9 12 23 B9 F5 50 E9, 00 00 00 00 00 00 F0 3F
replace_bytes = 0068, 55 A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F0 3F
base_address = 00000000
# initialise loop counter
replace_bytes = 6C5ABC, 00 23 00 22, 00 BF 00 25
# loop to load 10 vals from old table
replace_bytes = 6C5AC0, C4 F2 08 03 07 F1, 20 46 29 A1 29 44
replace_bytes = 6C5AC6, 80 01 20 46, B9 F5 04 E9
replace_bytes = 6C5ACA, 61 E9 02 23 B9 F5, 08 35 50 2D F7 D1
# restore r5
replace_bytes = 6C5AD0, 00 E9, 4D 46
# continue at 6C5AD2
#
#
# Replacement value: the number of initial line spacing values to exclude from
# the line spacing slider; minimum 0, maximum 13. E.g. 9 will result in a
# slider with 15 positions, starting from the 10th replace_float value below.
replace_int = 6C59AE, 0, 0
#
# 24 replacement line spacing values: change these replace_float values to suit
# your device and preferences:
#
base_address = 6C59C8
replace_float = 0000, 1.0, 0.75
replace_float = 0008, 1.0, 0.78
replace_float = 0010, 1.0, 0.8
replace_float = 0018, 1.0, 0.82
replace_float = 0020, 1.0, 0.84
replace_float = 0028, 1.0, 0.86
replace_float = 0030, 1.0, 0.88
replace_float = 0038, 1.0, 0.9
replace_float = 0040, 1.0, 0.92
replace_float = 0048, 1.0, 0.94
replace_float = 0050, 1.0, 0.96
replace_float = 0058, 1.0, 0.98
replace_float = 0060, 1.0, 1.0
replace_float = 0068, 1.0, 1.02
base_address = 6C5B68
replace_float = 0000, 1.05, 1.05
replace_float = 0008, 1.07, 1.07
replace_float = 0010, 1.1, 1.1
replace_float = 0018, 1.35, 1.15
replace_float = 0020, 1.7, 1.2
replace_float = 0028, 1.8, 1.25
replace_float = 0030, 2.2, 1.3
replace_float = 0038, 2.4, 1.35
replace_float = 0040, 2.6, 1.4
replace_float = 0048, 2.8, 1.5
#
# The first 14 replacement values above should allow the line spacing to be
# adjusted in increments of one pixel when using a medium sized font on a high
# resolution device. If you use a smaller font size and/or a lower resolution
# device you might find that increasing the slider one step at a time doesn't
# always result in a line spacing increase at each step. In that case, you
# might want to use replacement values that are not quite so close together.
#
# For example: (I use these values on my 758x1024 Glo)
#
# 0.7 0.725 0.75 0.775 0.8 0.825 0.85 0.875 0.9 0.925 0.95 0.975 1.0 1.025 ...
#
# or: (these might better suit the 600x800 Touch)
#
# 0.6 0.633 0.667 0.7 0.733 0.767 0.8 0.833 0.867 9.0 9.33 9.67 1.0 1.025 ...
#
</patch>
|