Quote:
Originally Posted by babygau
i got this error and could you pls tell me what i did wrong?
Code:
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
here is content of line 9:
Code:
- FindReplaceString:
Find: "\n font-family: Avenir;\n"
# When editing the replacement values below,
# BE CAREFUL NOT TO CHANGE THE LENGTH OF THE REPLACEMENT STRING!
Replace: "font-family:Bitner;"
MustMatchLength: yes
|
Your patch states
MustMatchLength: yes which means that your
Find: and
Replace: strings must be exactly the same length.
Based on the code you posted above:
Code:
Find: "\n font-family: Avenir;\n"
Replace: "font-family:Bitner;"
your Find & Replace strings (the parts between the double-quotes) are clearly NOT the same length, so correct the Replace string so that its length does match.
Alternatively you might find the thread
kobopatch users & non-Kobo-supported languages useful (particularly posts #1, #2 and the summary in post #63) if you want to change the Kobo GUI fonts (Georgia and Avenir) to ones which support your language better.