SoFunction
Updated on 2025-03-01

Installation of Chinese fonts under Linux


1. Disable the xfs server first.
Run the Setup command to abort the feature of xfs running with the system in the service item. The reason why xfs server is disabled is mainly because xfs will automatically update files in the font directory, which affects the modifications we make.
2. Copy the selected font to the relevant directory.
Generally, the basic font is selected (it is said that this font is the most exquisite Chinese font). Copy these fonts to /usr/share/fonts/default/TrueType to generate and file.
Run in the font directory you are in: ttmkfdir >. Edit the file and add two lines under -misc-SimSun-medium-r-normal--0-0-0-0-p-0-ascii-0:
-misc-SimSun-medium-r-normal--0-0-0-0
-p-0-gb2312.1980-0
-misc-SimSun-medium-r-normal--0-0-0-0
-p-0-gbk-0
At the same time, please change the number on the first line of the file accordingly and copy it to .
3. Set the font path and load the server
Edit /etc/X11/XF86Config-4 file (# means comment line).
Section "Files"
# FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/share/fonts/default/TrueType"
EndSection
Section "Module"
……
Load "xtt"
……
EndSection
Restart and set the font to simsun in Control Center. OK, it's done.