pgaskin / kobopatch-patches

Patches for use with kobopatch.
https://pgaskin.net/kobopatch-patches/
MIT License
212 stars 20 forks source link

Custom header/footer captions font-family not applied to Custom header/footer page number text #103

Closed sdothum closed 2 years ago

sdothum commented 2 years ago

Selecting an alternate font to Avenir in "Custom header/footer captions" (nickel.yaml) produces a header and footer with 2 differing fonts for the caption and page number portions.

Unfortunately, there is no option (afaik) to define the font-family for the "Custom header/footer page number text" (libnickel.so.1.0.0.yaml).

(A similar post was inadvertantly posted with the older kobopatch git repo).

jackiew1 commented 2 years ago

Unfortunately this has always been the case. Wherever Kobo have hidden the code which sets the font-family for the right-hand page number portion, it isn't currently accessible for patching.

Currently the only known way of getting a custom font to do what you want is to replace the built-in GUI sans-serif font, 'Avenir Next', with one of your choice. Obviously this will then affect the whole GUI not just book headers/footers.

If you want to pursue this option there's more info in this MobileRead thread. Follow the link to the thread summary at the bottom of the 1st post. There's no rocket science involved but you will need to use a font editor to rename, internally, the 4 files (regular, italic, bold, bolditalic) of your chosen replacement font to 'Avenir Next'.

sdothum commented 2 years ago

Thank you for the detailed response. What seemed like an unusual oversight, obviously was not!

Fingers crossed at some future date we can properly set the header and footer font-family. Regardless, kudos for all the awesome work done in kobopatch :)