- 论坛徽章:
- 0
|
这是IBM发给我的说明,只说了arial字体,其他字体没有说,我还是不太明白,大家有谁做过其他字体么,特别是中文字体!
AIX fonts
Using a Windows 2000 arial truetype font
Overview
Tihs document describes information from PMR44386, 661, 706 for using Windows 2000 arial truetype fonts in AIX 4.3.3 and beyond.
Overview
Arial fonts are not available with AIX, but I found this information on how someone was able to use Microsoft Windows 2000 fonts from AIX.
Getting the fonts
I found a way to add arial fonts to AIX Xserver but it works only if OF you use Windows 2000 arial truetype fonts. It seems that there are 18 differences with the fonts provided with windows 98. The steps to let this work are:
Go to wour Win2k font directory \winnt\fonts
ftp the following files in binary mode (bin) to he AIX system under the directory /usr/lpp/X11/lib/X11/fonts/TrueType
arial.ttf
arialbd.ttf
arialbi.ttf
ariali.ttf
Make sure you set the permissions to match other fonts.
Enabling the fonts
Follow these steps to add the fonts to your usable fonts in AIX Xwindows environments.
Go to the AIX under directory /usr/lpp/X11/lib/X11/fonts/TrueType
edit the fonts.scale file and add the following entries:
arial.ttf -Monotype-Arial-medium-r-normal--0-0-0-0-m-0-iso8859-1
ariali.ttf -Monotype-Arial-medium-r-italic--0-0-0-0-m-0-iso8859-1
arialbd.ttf -Monotype-Arial-medium-r-bold--0-0-0-0-m-0-iso8859-1
arialbi.ttf -Monotype-Arial-medium-r-bolditalic--0-0-0-0-m-0-iso8859-1
!!! REMEMBER TO UPDATE THE FIRST NUMBER IN THE fonts.scale FILE ADDING 4 TO THE THAT NUMBER (eg: if it is 47 it will be 51)
Save the file and run the command:
mkfontdir /usr/lpp/X11/lib/X11/fonts/TrueType
This will create a new fonts.dir file in the directory.
Add the /usr/lpp/X11/lib/X11/fonts/TrueType to the X resources running
xset fp rehash
Make sure that the TrueType directory is in your font path:
xset -q
If it is not then add it with:
xset +fp /usr/lpp/X11/lib/X11/fonts/TrueType
Testing the fonts
Now make sure that the server can see the fonts.
Go to another dir non containing fonts and run the command
xlsfonts -l *arial*
This should you return the following entries:
-monotype-arial-medium-r-bold--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-bold--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-bold--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-bolditalic--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-bolditalic--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-bolditalic--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-italic--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-italic--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-normal--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-normal--0-0-0-0-m-0-iso8859-1
-monotype-arial-medium-r-normal--0-0-0-0-m-0-iso8859-1
To show the font run the following command and select the arial font family:
xfontsel |
|