Debian11 minimal system installation of Chinese fonts

Cause: To use the remote server as the desktop system to save memory resources, the minimal installation of debian11.6, but when the Chinese website is opened in the browser, some texts are displayed as garbled characters. So install some fonts so that they can be displayed correctly.

1. Can be installed directly under the command line

## 先查看现有字体
fc-list :lang=zh
## 安装新字体
apt update
apt install fonts-wqy-zenhei fonts-wqy-microhei fonts-arphic-ukai fonts-arphic-uming
apt install xfonts-intl-chinese wqy* 

## Arch wiki 中建议的字体
adobe-source-han-sans-cn-fonts
adobe-source-han-serif-cn-fonts
noto-fonts-cjk
wqy-microhei
wqy-microhei-lite
wqy-bitmapfont
wqy-zenhei
ttf-arphic-ukai
ttf-arphic-uming

2. Install the font package tool first, and then copy it from the Windows 11 system

2.1 Install font management tools 

apt update
apt install fontconfig xfonts-utils

 2.2 View and copy fonts in Windows 11 system

2.3 Package and upload the copied fonts to Debian11

scp -P55555 .\fonts.zip root@debian11-ip:/home/ 

2.4 Unzip, transfer, update fonts

cd /home/
unzip fonts.zip
mv font/* /usr/share/fonts/truetype/

## 更新
cd /usr/share/fonts/
mkfontscale
mkfontdir
fc-cache

2.5 Check the installed fonts

fc-list :lang=zh

Guess you like

Origin blog.csdn.net/lggirls/article/details/130148509