FreeBSD系统下添加中文字体

番茄系统家园 · 2022-07-16 14:29:03

1. 准备中文字体

Windows有不错的中文字体sim.ttc

2. 创建目录/usr/X11R/lib/X11/fonts/TrueType,将sim
.ttc拷贝到此目录下

3. 刷新字体库

fc-cache -f -v


4. 编辑/etc/X11/xorg.conf文件,在Section "Files"段添加:
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
将其它的字体路径注掉,可以加快启动速度
修改后为:
Section "Files"
    RgbPath      "/usr/X11R6/lib/X11/rgb"
    ModulePath   "/usr/X11R6/lib/modules"
    FontPath     "/usr/X11R6/lib/X11/fonts/TrueTpye/"
Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        #Load  "record"
        Load  "xtrap"
        #Load  "freetype"
        #Load  "type1"
 

免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/xtwt/2062098BGxsu.html
猜你喜欢
最新应用
热门应用