View Single Post
Old 10-02-2019, 11:46 AM   #33
vostro
Connoisseur
vostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead communityvostro has become a pillar of the MobileRead community
 
Posts: 83
Karma: 15734
Join Date: Dec 2016
Device: Scribe,Elipsa,PWSE,FORMA,KOA2,KV,KA1, KAH2O, PW1-4, KA, AKT,
Quote:
Originally Posted by jackie_w View Post



I'm quoting myself again because it's important. You must make sure the red bit in the patch matches the actual internal fontname of your copy of Code2000. Double-clicking the .ttf file in Windows would show you the internal fontname.

Put it in nickel.yaml (or wherever you keep your other custom nickel patches).
thanks a lot for the code, it's indeed Code2000 rather than CD2000 as this name was also put in dictionary font patch which works well, but unfortunately the new beta2 patch didn't work out in booklist, there is still missing content in booklist name, i tested separately with your original script as well as the following script, both has missing content.

Custom GUI Chinese TW Book title - beta2:
- Enabled: yes
- Description: Change font-family of basic GUI for zh-TW Book title field
- FindZlib: "HeaderSmallElidedLabel,\nHeaderSmallItalicLab el {\n font"
- ReplaceZlibGroup:
Replacements:
# Book Title in Book list (HeaderSmallElidedLabel)
# Change font-family - all Kobo models
- Find: "HeaderSmallElidedLabel[localeName=\"zh-TW\"],\nHeaderSmallItalicLabel[localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;"
Replace: "HeaderSmallElidedLabel[localeName=\"zh-TW\"],\nHeaderSmallItalicLabel[localeName=\"zh-TW\"] {\n font-family: Code2000, sans-serif;"
- Find: "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;"
Replace: "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n font-family: Code2000, sans-serif;"
- Find: "HeaderSmallElidedLabel[localeName=\"zh\"],\nHeaderSmallItalicLabel[localeName=\"zh\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;"
Replace: "HeaderSmallElidedLabel[localeName=\"zh\"],\nHeaderSmallItalicLabel[localeName=\"zh\"] {\n font-family: Code2000, sans-serif;"
vostro is offline   Reply With Quote