免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1315 | 回复: 0
打印 上一主题 下一主题

[新手入门] AIX环境下如何使用windows平台字体文件! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-24 11:20 |只看该作者 |倒序浏览
这是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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP