服务器 频道

在FreeBSD中使用windows的simsun字体

    【IT168 服务器学院】环境FreeBSD4.4+XFree86 4.1+kde2
    #mkdir /usr/X11R6/lib/X11/fonts/TrueType/
    #mount_msdos /dev/ad0s1 /mnt
    #cp /mnt/winnt/fonts/simsun.ttc /usr/X11R6/lib/X11/fonts/TrueType/
    这儿用的是win2000的字体文件,win98的路径会不同。
    再在/usr/X11R6/lib/X11/fonts/TrueType中建立两个文件fonts.dir和fonts.scale。
    两个文件的内容都为:
    4
    simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-ascii-0
    simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
    simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
    simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1
    #mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings -     e /usr/X11R6/lib/X11/fonts/encodings/large
    修改/etc/X11/XF86Config找到
    ...............
    FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
    加入
    FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"

    找到
    # This loads the Type1 and FreeType font modules
    Load "type1"
    Load "freetype"
    加入
    Load "xtt"
    并在Load "freetype"前加上#使之成为
    Load "type1"
    # Load "freetype"
    Load "xtt"
    其实用Load "freetype"也可以不过很难看。

    启动KDE后:在Control Center->Personalization->Country & Language中

    Country选择China,Charset选择gb2312.1980-0。这时使用的是fangfong ti,你可以在Control Center->Look & Feel->Fonts中选择simsun。

    Konqueror中Settings->File Manager->Appearance中Standard Font选择simsun,  Settings->Konqueror Browser->Appearance中Charset选择gb2312.1980-0所有的字体选择simsun

    这时就可以享用simsun字体了。

    参考资料:
    http://www.chinalinuxpub.com/doc/xfree86
    http://www.chinalinuxpub.com/

0
相关文章