View Single Post
Old 05-27-2014, 06:25 PM   #133
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
Quote:
Originally Posted by violent23 View Post
I see you say in post #124 that you found a way but that it hid some custom fonts as well. If this is the only way to remove the fonts that do not work correctly on the Aura with your custom footer I am willing to test and see if it hides any of my custom fonts. Of course I would need a way to keep Avenir for the Document Default.
Here is a patch to remove "non-system" fonts from the selection menu.

Firmware 3.3.0:
Spoiler:
Code:
<Patch>
patch_name = `Remove non-system fonts in Reader list`
patch_enable = `no`
replace_bytes = 93F8E0, CC F6 74 E6, 00 46 00 46
</Patch>

Firmware 3.3.1:
Spoiler:
Code:
<Patch>
patch_name = `Remove non-system fonts in Reader list`
patch_enable = `no`
replace_bytes = 940630, CC F6 12 E3, 00 46 00 46
</Patch>


I don't have many sideloaded fonts to test with, but from what I can tell the "system" fonts include the built-in fonts Amasis, Avenir, Caecilia, Georgia, Gill Sans, Kobo Nickel, Malabar, and some sideloaded fonts such as Times New Roman which were included in older firmware versions. The "non-system" fonts are everything else: Gothic, Ryumin, OpenDyslexic, Dyslexie, and other sideloaded fonts such as Dark Courier.

Note that Document Default is not a font, selecting it just tells the reader to to use whatever fonts are specified in the book itself, possibly embedded fonts. If the book doesn't specify any font then it uses a default font, which on the Glo seems to be Georgia for the body and Gothic for the header/footer.
GeoffR is offline   Reply With Quote