View Single Post
Old 02-21-2017, 07:29 PM   #51
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
`Ignore .otf fonts`

This patch should make the firmware ignore sideloaded and pre-installed .otf fonts. I haven't tested it much.

The only pre-installed .otf font is OpenDyslexic. In Firmware 3.19.5761 and earlier it was easy to remove OpenDyslexic just by replacing it with an empty font, but in the current firmware the name OpenDyslexic still shows up in the font menu even if it is just an empty file.

There is probably no reason to use this patch unless you want to remove OpenDyslexic from the font menu, and you only have.ttf fonts sideloaded.

`Ignore.otf fonts` (paste into libnickel.so.1.0.0.patch)
Spoiler:
Code:
<Patch>
patch_name = `Ignore .otf fonts`
patch_enable = `yes`
#
## Ignores sideloaded and pre-installed .otf fonts.
## (The only pre-installed .otf font is OpenDyslexic.)
## Embedded .otf fonts work as normal.
# 
replace_string = 8FEB38, `*\0.\0o\0t\0f\0`, `_\0.\0o\0t\0f\0`
replace_string = 9514EC, `*\0.\0o\0t\0f\0`, `_\0.\0o\0t\0f\0`
</Patch>
GeoffR is offline   Reply With Quote