View Single Post
Old 12-12-2019, 08:29 AM   #12
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Carmelocotonto View Post
This idea was on mobileread (I don't remember who is the origen but I can look for it).

Edit: In version 4.18.13737 existed these lines:

Code:
        # Don't change anything below. It exists to free up some space for
        # your changes above by removing Japanese/Chinese-specific CSS code blocks
        # so that kobopatch will run without giving some kind of 'too long' error message.
        - {Find: "#caption[localeName=\"ja\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
        - {Find: "#caption[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
        - {Find: "#caption[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
        - {Find: "#caption[localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
In fw 4.19 Kobo changed something to do with the default font for one of the Chinese locales. See the line in red. Try changing it to (with the correct indentation)
Code:
        - {Find: "#caption[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}", Replace: "\n"}
and try again. Or, alternatively, just comment out this line.


I haven't had time to test geek1011's changes to this patch yet. If the above doesn't work I'll have better info when I've done my own testing.

ETA: Testing done. 'Custom new header/footer font' patch corrected on geek1011's GitHub site for next release.

Last edited by jackie_w; 12-12-2019 at 01:13 PM. Reason: ETA
jackie_w is offline   Reply With Quote