pgaskin / kobopatch-patches

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

Change system font with custom patches #60

Closed bangedorrunt closed 4 years ago

bangedorrunt commented 4 years ago

hi, i found some patches that allow KOBO to change its default system fonts from here and there. Following the instruction but fail to get it compiled.

Applying overrides
    ENABLE  `Font-family and font-size bulk change (part 2 of 2)`
Error: could not apply patches: invalid patch file 'src/font-patch-libnickel.yaml': patch "Font-family and font-size bulk change (part 2 of 2)": line 9: inst 3: FindReplaceString: replacement string 5 chars too short

Applying overrides
    ENABLE  `Font-family and font-size bulk change (part 1 of 2)`
Error: could not apply patches: invalid patch file 'src/font-patch-libnickel.yaml': patch "Font-family and font-size bulk change (part 1 of 2)": line 23: inst 3: FindReplaceString: replacement string 5 chars too short

would you mind telling me what I did wrong?

Here is mine: font-patches-for-kobo

many thanks

pgaskin commented 4 years ago

You've changed a patch which still has the older requirement of needing a replacement string exactly the length of the original. You'll need to add enough spaces somewhere harmless (i.e. after the : in CSS properties) to make them match.

bangedorrunt commented 4 years ago

many thanks ❤️ , the problem is solved!