Quote:
Originally Posted by DNSB
Personally, I would use the extra files option in KoboPatcher to add the font files without needing the unzip and modify used by @mimosavj.
At the end of the kobopatch.yaml files simply add the following lines (replace the <path to font file> with the location of your font files):
Code:
<path to font file>\Georgia\georgia.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgia.ttf
<path to font file>\Georgia\georgiab.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiab.ttf
<path to font file>\Georgia\Georgia\georgiai.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiai.ttf
<path to font file>\Georgia\georgiaz.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiaz.ttf
<path to font file>\Avenir\Avenir.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir.ttf
<path to font file>\Avenir\Avenir-Bold.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-Bold.ttf
<path to font file>\Avenir\Avenir-BoldItalic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-BoldItalic.ttf
<path to font file>\Avenir\Avemir-Italic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-Italic.ttf
|
It looks like @hengyu has a Libra Colour, presumably using fw v4.41.23145. If so, Georgia and Avenir are no longer included in the firmware. The default GUI serif and sans-serif fonts are now 'Rakuten Serif' and 'Rakuten Sans', respectively.
To use the 'files' section of kobopatch.yaml you would need something like this:
Code:
files:
# customise GUI serif
<path_to_local_serif>-Regular.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSerifApp-Regular.ttf
<path_to_local_serif>-Bold.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSerifApp-Bold.ttf
<path_to_local_serif>-Italic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSerifApp-Italic.ttf
<path_to_local_serif>-BoldItalic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSerifApp-BoldItalic.ttf
# customise GUI sans-serif
<path_to_local_sans-serif>-Regular.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSansUIApp-Regular.ttf
<path_to_local_sans-serif>-Bold.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSansUIApp-Bold.ttf
<path_to_local_sans-serif>-Italic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSansUIApp-Italic.ttf
<path_to_local_sans-serif>-BoldItalic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/RakutenSansUIApp-BoldItalic.ttf
Important Notes:- It's also important to reiterate that *before* copying them to the Libra Colour that you must use a font editor (e.g. FontForge) to change the *internal* fontnames to exactly match the internal fontnames of the files you're replacing, namely 'Rakuten Serif' and 'Rakuten Sans'.
- @hengyu doesn't mention which locale their Kobo is set to. I don't think replacing 'Rakuten Serif' and 'Rakuten Sans' will help if locale is set to Japanese or Chinese, which use different system GUI fonts.