01-31-2021, 01:51 PM
(This post was last modified: 01-31-2021, 01:52 PM by TheOldPresbyope.
Edit Reason: typo
)
(01-31-2021, 12:54 PM)bigbulb Wrote: Hi All,
I'm using old version of Moode audio with SSD1306 I2S OLED ( https://github.com/naisema/MoodeAudio-OLED " which works fine and it can display Chinese fonts/ songs title.
I upgraded to Moode 7.01 recently and use this OLED method, ( the above mentioned naisema method can't work with new Moode 7.01) but unfortunately it can't display Chinese fonts.
May I know if it is possible to add Chinese fonts please?
What old version? No, wait, on the old version just execute the following from the command line:
Code:
dpkg --get-selections|grep fonts
Here is what I get on a moOde 7.0.1 player
Code:
pi@moode3a:~ $ dpkg --get-selections|grep fonts
fonts-dejavu-core install
xfonts-100dpi install
xfonts-75dpi install
xfonts-base install
xfonts-encodings install
xfonts-scalable install
xfonts-utils install
If you are seeing Chinese characters being displayed, we should see some additional lines in this output. You'll need to install the same packages on your moOde 7.0.1 player.
Here's what is available in the way of Chinese fonts in the current Raspberry Pi OS repo
Code:
pi@moode3a:~ $ apt-cache search fonts|grep Chinese
fonts-arphic-bkai00mp - "AR PL KaitiM Big5" Chinese TrueType font by Arphic Technology
fonts-arphic-bsmi00lp - "AR PL Mingti2L Big5" Chinese TrueType font by Arphic Technology
fonts-arphic-gbsn00lp - "AR PL SungtiL GB" Chinese TrueType font by Arphic Technology
fonts-arphic-gkai00mp - "AR PL KaitiM GB" Chinese TrueType font by Arphic Technology
fonts-arphic-ukai - "AR PL UKai" Chinese Unicode TrueType font collection Kaiti style
fonts-arphic-uming - "AR PL UMing" Chinese Unicode TrueType font collection Mingti style
fonts-cns11643-kai - Chinese TrueType font, TW-Kai
fonts-cns11643-pixmaps - Chinese TrueType font, PNG 24x24 pixmaps
fonts-cns11643-sung - Chinese TrueType font, TW-Sung
fonts-wqy-zenhei - "WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font
latex-cjk-chinese - Chinese module of LaTeX CJK
task-chinese-s - Simplified Chinese environment
task-chinese-t - Traditional Chinese environment
texlive-lang-chinese - TeX Live: Chinese
texlive-lang-cjk - TeX Live: Chinese/Japanese/Korean (base)
xfonts-intl-chinese - international fonts for X - Chinese
xfonts-intl-chinese-big - international fonts for X - large Chinese
fonts-moe-standard-kai - Chinese TrueType font, standard Kaiti (non-free)
fonts-moe-standard-song - Chinese TrueType font, standard Song (non-free)
If I didn't have the old installation to compare, I'd try installing the complete set of arphic fonts and the appropriate xfonts.
Code:
sudo apt-get install \
fonts-arphic-bkai00mp \
fonts-arphic-bsmi00lp \
fonts-arphic-gbsn00lp \
fonts-arphic-gkai00mp \
fonts-arphic-ukai \
fonts-arphic-uming \
xfonts-intl-chinese \
xfonts-intl-chinese-big
That downloads about 36MB of files which after installation consume 80+MB of disk space.
Might have to reboot to see the fonts take effect.
If that's not enough, you might also have to adjust the locale, in which case the first step is to compare the outputs from executing 'locale -a' commands on the old and new installations.
Regards,
Kent