Kylix 3 font problem

zhaozj2021-02-16  84

Add a Courier New font in Code Editor:

1. Copy COOUR.TTF, Couri.ttf, Courbd.ttf, Courbi.ttf to a temporary directory, such as / root.

2. Establish a directory in / usr / x11r6 / lib / x11 / fonts, such as Windows.

# CD / usr / x11r6 / lib / x11 / fonts # mkdir windows

3. Copy the font file to the directory that is just established.

# CD / usr / x11r6 / lib / x11 / fonts / windows # cp /root/cour*.ttf.

4. Establish X information of the font directory.

# TTMKFDIR> FONTS.SCALE # MKFONTDIR

5. If the directory has not yet added the font line list of the X font service, add this directory (note must use an absolute path).

# chkfontpath --Add / USR / X11R6 / LIB / X11 / FONTS / Windows

6. Add this directory in the X font service.

# xset fp transward

7. Raise X font services.

# Service XFS Restart

Questions about the SIMSUN in the Form on Kylix 3:

After installing SIMSUN.TTC according to the above steps, Kylix 3's FORM and other controls can use Windows's Song Body & New Song, which is much more than the huge ugly Chinese fonts comes with Linux. But after the problem, it is possible to change an Form .Font.name, Size is very beautiful (but too big), but 10, 12, 13 is difficult, at least Redhat 9 must be like this. In fact, the problem of character set coding (or Qt 2.3 for Kylix 3), as long as it will be .font.charset to fcsunicode. But this is another problem, it is to change to FCSUnicode, find that the English is displayed using SIMSUN, each character is equivalent (and actually a Chinese word width) ... In fact, the problem is in front TTMKFDIR. Look at the contents of the Fonts.Scale file (the same as Fonts.dir), you can see a few lines like the following lines:

SIMSUN.TTC-MISC-SIMSUN-Medium-R-NORMAL - 0-0-0-0-C-0-ASCII-0

The problem is that C, according to XLFD rule C, "can vertical equality", so as long as it is changed to P:

SIMSUN.TTC -MISC-SIMSUN-Medium-R-NORMAL - 0-0-0-0-P-0-ASCII-0

Of course, don't forget to change the description of other coding coverage, such as Unicode (ISO10646-1) you want, or there will be problems:

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

New Post(0)