可能是我没找到吧,感觉openbsd4.6中的wqy-zhenhei好久没有更新了,还是0.6。我想更新到0。8,只能自己动手了。
1) wget -c ftp://ftp.openbsd.org/pub/OpenBSD/4.6/p ... 6.26-0.tgz
2) tar xzfv wqy-zenhei-ttf-0.6.26-0.tgz ,发现只有两个文件,一个文件夹(里面只有一个文件)+CONTENTS,+DESC,lib/X11/fonts/wqy/wqy-zenhei。ttf
a) 想打开看看,无论是vim,more都不行。后来发现只有cat 好使。
cat +CONTENTS :内容如下
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/24 01:53:08 kevlo Exp $
@name wqy-zenhei-ttf-0.6.26-0
@comment subdir=x11/wqy-zenhei-ttf cdrom=yes ftp=yes
@arch *
+DESC
@sha Dkr7Rh3gNB2t7z9XT9IMJJeVPFdV5blKkFV3VSbkhiY=
@size 555
@cwd /usr/local
lib/X11/fonts/
@fontdir lib/X11/fonts/wqy/
lib/X11/fonts/wqy/wqy-zenhei.ttf
@sha HIM0zaeclTf5TUP/Fug2JOH9900ef/lNLwrgPde96Rw=
@size 10808952
cat +DESC : 内容如下
en Quan Yi Zen Hei outline font
The WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese
outline font. It was designed for general purpose text formatting
and on-screen display of Chinese characters among many other languages.
The embolden strokes of the font glyphs produces enhanced screen contrast,
making it easier to read recognize. The embedded bitmap glyphs further
enhance on-screen performance, which can be enabled with the provided
configuration files.
Maintainer: Kevin Lo <[email protected]>
WWW: http://wqy.sourceforge.net/en/
b) 这下好了,差不多明白了,+Contents 文件是配置文件,+DESC 文件是版权申明和作者声明。那个文件夹里的文件才是真正的字库。
3)这下好了从 http://wqy.sourceforge.net/ 下载最新的wqy-zenhei-0.8.x, 解压到/usr/locallib/X11/fonts/
a)由于本人懒,只是看了看内容(ls -lhR /usr//usr/local/lib/X11/fonts/)
total 33028
-rw-r--r-- 1 wkx wheel 743B Oct 3 23:19 43-wqy-zenhei-sharp.conf
-rw-r--r-- 1 wkx wheel 1.9K May 18 2009 44-wqy-zenhei.conf
-rw-r--r-- 1 wkx wheel 15.2K Feb 19 12:50 AUTHORS
-rw-r--r-- 1 wkx wheel 17.6K Mar 23 2008 COPYING
-rw-r--r-- 1 wkx wheel 13.2K Feb 19 12:34 ChangeLog
-rw-r--r-- 1 wkx wheel 5.1K Feb 19 12:50 INSTALL
-rw-r--r-- 1 wkx wheel 1002B Oct 3 12:25 Makefile
-rw-r--r-- 1 wkx wheel 19.0K Feb 19 12:58 README
-rw-r--r-- 1 wkx wheel 71B Mar 11 18:40 WQY_ZENHEI_NIGHTLY_BUILD
drwxr-xr-x 2 wkx wheel 512B May 27 2009 debsrc
drwxr-xr-x 8 wkx wheel 512B Oct 4 03:35 i18n
-rw-r--r-- 1 wkx wheel 0B Mar 14 15:30 log.txt
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 pixmap
drwxr-xr-x 2 wkx wheel 512B May 27 2009 rpmsrc
-rwxr-xr-x 1 wkx wheel 1.0K Oct 3 23:36 wqy-zenhei-cfg
-rw-r--r-- 1 wkx wheel 16.0M Mar 11 18:40 wqy-zenhei.ttc
drwxr-xr-x 2 wkx wheel 512B May 27 2009 wqypkg
-rw-r--r-- 1 wkx wheel 780B Oct 4 02:14 zenhei-config.desktop
-rwxr-xr-x 1 wkx wheel 1.3K Oct 3 23:19 zenheiset
./debsrc:
total 16
-rw-r--r-- 1 wkx wheel 275B May 26 2009 control
-rwxr-xr-x 1 wkx wheel 1.8K Oct 3 12:38 postinst
-rwxr-xr-x 1 wkx wheel 619B May 27 2009 postrm
-rwxr-xr-x 1 wkx wheel 987B Oct 3 12:41 prerm
./i18n:
total 24
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 en
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_CN
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_HK
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_MO
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_TW
./i18n/en:
total 4
-rw-r--r-- 1 wkx wheel 631B Sep 28 13:18 wqy-zenhei.po.orig
./i18n/zh:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:54 wqy-zenhei.po
./i18n/zh_CN:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Sep 28 13:17 wqy-zenhei.po
./i18n/zh_HK:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:55 wqy-zenhei.po
./i18n/zh_MO:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:55 wqy-zenhei.po
./i18n/zh_TW:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Sep 28 13:17 wqy-zenhei.po
./pixmap:
total 8
-rw-r--r-- 1 wkx wheel 3.3K Oct 2 23:45 wqy-zenhei-cfg.png
./rpmsrc:
total 4
-rw-r--r-- 1 wkx wheel 1.3K May 26 2009 wqy-microhei-fonts.spec
./wqypkg:
total 20
-rwxr-xr-x 1 wkx wheel 2.2K Oct 3 23:20 wqydebcopy.sh
-rwxr-xr-x 1 wkx wheel 962B Oct 3 10:16 wqydebmkdir.sh
-rwxr-xr-x 1 wkx wheel 1.3K May 27 2009 wqyrpmcopy.sh
-rwxr-xr-x 1 wkx wheel 689B May 27 2009 wqyrpmmkdir.sh
b)发现好多文件哦,懒得筛选了,看README,和INSTALL了。
只用修改 /etc/X11/xorg.conf 就可以了。找到Section “Files" ,在里面添加一句可以了,告诉他字体文件目录在哪就可以了。我的是:
FontPath "/usr/local/lib/X11/fonts/wqy-zenhei"
因为我把wqy 他解压到 /usr/local/lib/X11/fonts 中了。
4)退出桌面,重启桌面。Ok,发现多了三个wqy字体哦。
5)有人告诉我怎样作port吗?我想把他打包,好下回直接用.(pkg_create). pkg_add wqy-zenhei-0.8.x-tgz.
不会作port,只能手动了(wqy-zenhei-0.8.x)
你的意思是不是想保留编译的packages?还是想自己提交port?wkx9dragon 写了:可能是我没找到吧,感觉openbsd4.6中的wqy-zhenhei好久没有更新了,还是0.6。我想更新到0。8,只能自己动手了。
1) wget -c ftp://ftp.openbsd.org/pub/OpenBSD/4.6/p ... 6.26-0.tgz
2) tar xzfv wqy-zenhei-ttf-0.6.26-0.tgz ,发现只有两个文件,一个文件夹(里面只有一个文件)+CONTENTS,+DESC,lib/X11/fonts/wqy/wqy-zenhei。ttf
a) 想打开看看,无论是vim,more都不行。后来发现只有cat 好使。
cat +CONTENTS :内容如下
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/24 01:53:08 kevlo Exp $
@name wqy-zenhei-ttf-0.6.26-0
@comment subdir=x11/wqy-zenhei-ttf cdrom=yes ftp=yes
@arch *
+DESC
@sha Dkr7Rh3gNB2t7z9XT9IMJJeVPFdV5blKkFV3VSbkhiY=
@size 555
@cwd /usr/local
lib/X11/fonts/
@fontdir lib/X11/fonts/wqy/
lib/X11/fonts/wqy/wqy-zenhei.ttf
@sha HIM0zaeclTf5TUP/Fug2JOH9900ef/lNLwrgPde96Rw=
@size 10808952
cat +DESC : 内容如下
en Quan Yi Zen Hei outline font
The WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese
outline font. It was designed for general purpose text formatting
and on-screen display of Chinese characters among many other languages.
The embolden strokes of the font glyphs produces enhanced screen contrast,
making it easier to read recognize. The embedded bitmap glyphs further
enhance on-screen performance, which can be enabled with the provided
configuration files.
Maintainer: Kevin Lo <[email protected]>
WWW: http://wqy.sourceforge.net/en/
b) 这下好了,差不多明白了,+Contents 文件是配置文件,+DESC 文件是版权申明和作者声明。那个文件夹里的文件才是真正的字库。
3)这下好了从 http://wqy.sourceforge.net/ 下载最新的wqy-zenhei-0.8.x, 解压到/usr/locallib/X11/fonts/
a)由于本人懒,只是看了看内容(ls -lhR /usr//usr/local/lib/X11/fonts/)
total 33028
-rw-r--r-- 1 wkx wheel 743B Oct 3 23:19 43-wqy-zenhei-sharp.conf
-rw-r--r-- 1 wkx wheel 1.9K May 18 2009 44-wqy-zenhei.conf
-rw-r--r-- 1 wkx wheel 15.2K Feb 19 12:50 AUTHORS
-rw-r--r-- 1 wkx wheel 17.6K Mar 23 2008 COPYING
-rw-r--r-- 1 wkx wheel 13.2K Feb 19 12:34 ChangeLog
-rw-r--r-- 1 wkx wheel 5.1K Feb 19 12:50 INSTALL
-rw-r--r-- 1 wkx wheel 1002B Oct 3 12:25 Makefile
-rw-r--r-- 1 wkx wheel 19.0K Feb 19 12:58 README
-rw-r--r-- 1 wkx wheel 71B Mar 11 18:40 WQY_ZENHEI_NIGHTLY_BUILD
drwxr-xr-x 2 wkx wheel 512B May 27 2009 debsrc
drwxr-xr-x 8 wkx wheel 512B Oct 4 03:35 i18n
-rw-r--r-- 1 wkx wheel 0B Mar 14 15:30 log.txt
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 pixmap
drwxr-xr-x 2 wkx wheel 512B May 27 2009 rpmsrc
-rwxr-xr-x 1 wkx wheel 1.0K Oct 3 23:36 wqy-zenhei-cfg
-rw-r--r-- 1 wkx wheel 16.0M Mar 11 18:40 wqy-zenhei.ttc
drwxr-xr-x 2 wkx wheel 512B May 27 2009 wqypkg
-rw-r--r-- 1 wkx wheel 780B Oct 4 02:14 zenhei-config.desktop
-rwxr-xr-x 1 wkx wheel 1.3K Oct 3 23:19 zenheiset
./debsrc:
total 16
-rw-r--r-- 1 wkx wheel 275B May 26 2009 control
-rwxr-xr-x 1 wkx wheel 1.8K Oct 3 12:38 postinst
-rwxr-xr-x 1 wkx wheel 619B May 27 2009 postrm
-rwxr-xr-x 1 wkx wheel 987B Oct 3 12:41 prerm
./i18n:
total 24
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 en
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_CN
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_HK
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_MO
drwxr-xr-x 2 wkx wheel 512B Oct 4 03:35 zh_TW
./i18n/en:
total 4
-rw-r--r-- 1 wkx wheel 631B Sep 28 13:18 wqy-zenhei.po.orig
./i18n/zh:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:54 wqy-zenhei.po
./i18n/zh_CN:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Sep 28 13:17 wqy-zenhei.po
./i18n/zh_HK:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:55 wqy-zenhei.po
./i18n/zh_MO:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Oct 2 22:55 wqy-zenhei.po
./i18n/zh_TW:
total 8
-rw-r--r-- 1 wkx wheel 810B Oct 2 23:00 wqy-zenhei.mo
-rw-r--r-- 1 wkx wheel 903B Sep 28 13:17 wqy-zenhei.po
./pixmap:
total 8
-rw-r--r-- 1 wkx wheel 3.3K Oct 2 23:45 wqy-zenhei-cfg.png
./rpmsrc:
total 4
-rw-r--r-- 1 wkx wheel 1.3K May 26 2009 wqy-microhei-fonts.spec
./wqypkg:
total 20
-rwxr-xr-x 1 wkx wheel 2.2K Oct 3 23:20 wqydebcopy.sh
-rwxr-xr-x 1 wkx wheel 962B Oct 3 10:16 wqydebmkdir.sh
-rwxr-xr-x 1 wkx wheel 1.3K May 27 2009 wqyrpmcopy.sh
-rwxr-xr-x 1 wkx wheel 689B May 27 2009 wqyrpmmkdir.sh
b)发现好多文件哦,懒得筛选了,看README,和INSTALL了。
只用修改 /etc/X11/xorg.conf 就可以了。找到Section “Files" ,在里面添加一句可以了,告诉他字体文件目录在哪就可以了。我的是:
FontPath "/usr/local/lib/X11/fonts/wqy-zenhei"
因为我把wqy 他解压到 /usr/local/lib/X11/fonts 中了。
4)退出桌面,重启桌面。Ok,发现多了三个wqy字体哦。
5)有人告诉我怎样作port吗?我想把他打包,好下回直接用.(pkg_create). pkg_add wqy-zenhei-0.8.x-tgz.
-
- 锌 Zn
- 帖子: 493
- 注册时间: 2010-02-02 18:00
-
- 锌 Zn
- 帖子: 493
- 注册时间: 2010-02-02 18:00
在线用户
正浏览此版面之用户: 没有注册用户 和 3 访客