Anyone have any luck overwriting the CJK fallback fonts? I'm getting steadily more annoyed by the missing Simplified Chinese characters in the titles of some of my books (see screenshot) and decided to try to do something about it.
What I tried:
kobopatch.yaml
Code:
# Fonts
src/cjksans.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/KBJ-UDKakugoPr6N-M.ttf
src/cjkserif.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/KBJ-TsukuMinPr6N-RB.ttf
nickel.yaml
Code:
Add title fallback fonts:
- Enabled: yes
- Description: |
Add CJK fallback fonts for titles
- BaseAddress: 0x14C8B81
- ReplaceZlibGroup:
Replacements:
# Change the replacement values to your desired width (I've made it half the default width as an example).
- {Find: "font-family: Georgia;", Replace: "font-family: Georgia, CJKSerif;"}
- {Find: "font-family: Avenir;", Replace: "font-family: Avenir, CJKSans;"}
- BaseAddress: 0x14C9E23
- ReplaceZlibGroup:
Replacements:
# Change the replacement values to your desired width (I've made it half the default width as an example).
- {Find: "font-family: Georgia;", Replace: "font-family: Georgia, CJKSerif;"}
- {Find: "font-family: Avenir;", Replace: "font-family: Avenir, CJKSans;"}
...where CJKSans and CJKSerif are two fonts I cobbled together out of Microsoft's stock Japanese and Simplified Chinese fonts. The patches work and apply properly (side note: do not attempt to add CJK glyphs to Georgia and patch that, the update fails and I had to factory-reset my Glo. Probably a filesize issue), but I don't see any changes in the UI and while CJKSans now shows up in the list of available fonts, CJKSerif dosn't and instead Kobo Tsukushi Minsho does (see second screenshot), which makes me think it's not being overwritten and still being used as the fallback somewhere.
I have a Glo and am happy to pop open the case and mount the internal SD card to investigate if it helps at all.