TrueType's textbook support problem in xwindow

zhaozj2021-02-16  156

Using the XTT module, local is zh_cn.gb2312

XWindow supports TrueType needs:

1. Font display module (I don't know how to say formal)

I know there is XTT and Freetype. There is / usr / x11r6 / lib / x11 / modules / fonts / in response to libXtt.a and libfreeetype.a files.

2. Font conversion module (I don't know how to say formal)

The GB2312 corresponds to the libgb2312.a file in / usr / x11r6 / lib / x11 / modules / fonts /, but the English character is used by libiso8859_1.a, so this is also a must-have file.

3. Profile support / etc / x11 / xf86config

In section "Module" Add: Load "XTT" // Used to load the XTT module in section "Module" removes the loading of freetype and Type1, says and XTT conflicts. Add: FontPath "/ usr / x11r6 / lib / x11 / fonts / cnfont" // Add Font Directory

4. Add in the font file

Put the font of the Chinese TrueType you need to / usr / x11r6 / lib / x11 / fonts / cnfont, while you need the corresponding Fonts.Dir and Fonts.Scale files

5.ok

转载请注明原文地址:https://www.9cbs.com/read-9019.html

New Post(0)