FreeBSD系统下添加中文字体

网络安全 2021-07-04 10:23www.168986.cn网络安全知识
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"
 

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by

长沙网络推广|微博营销|长沙seo优化|视频营销|长沙网络营销|微信营销|长沙网站建设|口碑营销|软文营销