How to solve openoffice garbled characters in centos?
1. Check the font storage location of the Linux system: cat /etc/fonts/fonts.conf
2. Upload the font to / in usr/share/fonts
. simhei.ttf
Helvetica, simsun.ttc
Song Dynasty (search in C:\Windows\Fonts
of Windows system)
3. Execute The following command:
mkfontscale
#Generate the fonts.scale file (if prompted -bash: mkfontscale: command not found
requires installation: yum install mkfontscale
)
mkfontdir #Generate fonts.dir file
fc-cache
4. Restartopenoffice
Related reference: centOS tutorial
The above is the detailed content of How to solve openoffice garbled characters in centos. For more information, please follow other related articles on the PHP Chinese website!