View Single Post
Old 02-20-2015, 09:12 AM   #9
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Custom font sizes

I have found a patch for the font sizes, it is a bit more more complicated than in the previous firmware as it tuns out the font size range now varies depending on the device type.

Spoiler:
Code:
<Patch>
patch_name = `Custom font sizes`
patch_enable = `yes`
#
# Unpatched font sizes now depend on the device's screen resolution:
#
#  Alyssum: 14px - 150px (48 sizes)
#  Dragon:  12px - 150px (50 sizes)
#  Phoenix: 12px - 122px (43 sizes)
#  Other:   12px - 90px  (35 sizes)
#
# Sizes increase in steps of 1 from the smallest size up to size 22, then in
# steps of 2 up to size 50, then in steps of 4 up to the largest size. 
#
# I don't know how many sizes are allowed, it is probably safe to use 50.
# This example results in the following ranges, with increases in steps of 1
# from the smallest size up to size 48, then steps of 2 up to size 60, then
# steps of 4 up to the largest size:
#
#  Alyssum: 14px - 88px (48 sizes)
#  Dragon:  12px - 88px (50 sizes)
#  Others:  12px - 80px (48 sizes)
#
# Start with this font size: (Alyssum, Others)
replace_int = 8DE83E, 14, 14
replace_int = 8DE842, 12, 12
#
# Add font sizes in increments of 1 until this size exceeded:
replace_int = 8DE872, 21, 47
#
# Continue from this font size:
replace_int = 8DE878, 22, 48
#
# Add font sizes in increments of 2 until this size exceeded:
replace_int = 8DE906, 49, 59
replace_int = 8DE922, 49, 59
#
# Continue from this font size:
replace_int = 8DE928, 50, 60
#
# Add font sizes in increments of 4 until this size exceeded:
# (Alyssum/Dragon, Phoenix, Others)
replace_int = 8DE850, 150, 88
replace_int = 8DE998, 122, 80
replace_int = 8DE99C, 90, 80
</Patch>


Try it out and let me know if you find any problems, or if the default size ranges should be different.

Edit: I've added this patch to the patch_kobo_3131.zip attachment in post #1

Last edited by GeoffR; 02-20-2015 at 09:13 PM. Reason: Added to post #1
GeoffR is offline   Reply With Quote