Use the Chinese TrueType font library for non-XFree86 X Servers

Source: Internet
Author: User

Due to the lack of relevant technical information, XFree86-3.3.3.1 on the current market more popular new display card can not provide the corresponding support. these display cards include the i740 chip-based AGP display card. fortunately, Precision Insight's XBF_i740 X Server provides support for this display chip. you can obtain the latest XBF_i740 X Server from ftp://ftp.redhat.com/pub/xbf/or ftp: // ftp.precisioninsight.com/pub/pi/XBF.
Because we cannot obtain the XBF_i740 X Server Source code, we cannot compile the support for Chinese TrueType fonts into this X Server. you must use X Font Server (xfs) to provide support for Chinese TrueType fonts for XBF_i740 X Server. the procedure is as follows:
1. obtain and install XBF_i740 X Server
Refer to the description in the software package.
2. Configure and run X Font Server (xfs)
1) Create an X Font Server Configuration File
The default configuration file of X Font Server is/usr/X11R6/lib/X11/fs/config. if the directory/usr/X11R6/lib/X11/fs does not exist in your system, check the/etc/X11/fs directory and copy the config file to/usr/X11R6/lib/X11/fs/config. you must modify the file as needed. the most important two points are: add the Chinese TrueType font directory/usr/X11R6/lib/X11/fonts/tt/to "catalogue" and add a line "deferglyphs = 16 ". the modified config file is roughly as follows:
# Font server configuration file
# $ Xconsorexp: config. cpp, v 1.7 91/08/22 11:39:59 rws Exp $
Clone-self = on
Use-syslog = off
Catalogue =/usr/X11R6/lib/X11/fonts/misc /,
/Usr/X11R6/lib/X11/fonts/Speedo /,
/Usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75 dpi /,
/Usr/X11R6/lib/X11/fonts/100 dpi/,/usr/X11R6/lib/X11/fonts/tt/
Deferglyphs = 16
Error-file =/usr/X11R6/lib/X11/fs-errors
# In decipoints
Default-point-size = 120
Default-resolutions = 100,100
2) run X Font Server
You can run the following command on the command line to start X Font Server:
[Tlc @ pht/] #/usr/X11R6/bin/xfs &
X Font Server will wait for the request at port 7100. for convenience, you 'd better add this line to the System Startup File, such as/etc/rc. d/rc. local, so that the system can automatically start X Font Server every time it is started.
3. Set X Server startup parameters
If you want to use the Chinese TrueType font library in a non-XFree86 X Server, you must add the option "-deferglyphs 16" when starting X Server ". if the system startup mode you set is text mode (runlevel is 3), you must modify the/usr/X11R6/bin/startx file and change the last line
Xinit $ clientargs ---deferglyphs 16 $ serverargs
If you set the system startup mode to graphical mode (runlevel is 5), that is, to start X Server with xdm, you must modify the/usr/X11R6/lib/X11/xdm/Xservers file, change the last line
: 0 local/usr/X11R6/bin/X-deferglyphs 16
4. Run XBF_i740 X Server and set the path of the Chinese TrueType font library
You can use
[Tlc @ pht/] # startx
Start X Server. For a system in graphical mode, log on to the xdm logon window, And the xdm program starts X Server. Then, you must enter the command on the terminal command line in x mode.
[Tlc @ pht/] # xset fp + tcp/localhost: 7100
To set the path of the X Server Chinese TrueType font. to avoid manual running of this command every time you start X Server, you can add this command to the system's/usr/X11R6/lib/X11/xinit/xinitrc (for text mode) or in the/usr/X11R6/lib/X11/xdm/Xsession (for graphic mode) file, the X Server will automatically execute the preceding command at each startup.
Now, you can use the Chinese TrueType font in a non-XFree86 X Server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.