LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: HaToTo

这个系统要怎样才能显示中文粗体/斜体?

[复制链接]
 楼主| 发表于 2004-12-6 12:04:23 | 显示全部楼层
谢谢两位啊, 看来补丁一定是要打的. libXft可以暂时搁一搁.

不过现在还有别的问题, 正编译别的呢.
 楼主| 发表于 2004-12-6 16:02:41 | 显示全部楼层
刚才把中文portage里的fontconfig给emerge上了, 怎么没有效果? libXft在编译的时候出错?

xftfreetype.c: In function `XftFontInfoFill':
xftfreetype.c:529: error: `FC_EMBEDDED_BITMAP' undeclared (first use in this function)
xftfreetype.c:529: error: (Each undeclared identifier is reported only once
xftfreetype.c:529: error: for each function it appears in.)
xftfreetype.c:568: error: `FC_USE_GAMMA' undeclared (first use in this function)
make[1]: *** [xftfreetype.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -I/usr/X11R6/include -march=pentium2 -pipe -O3 -fomit-frame-pointer -MT xftglyphs.lo -MD -MP -MF .deps/xftglyphs.Tpo -c xftglyphs.c  -fPIC -DPIC -o .libs/xftglyphs.o
.. gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -I/usr/X11R6/include -march=pentium2 -pipe -O3 -fomit-frame-pointer -MT xftglyphs.lo -MD -MP -MF .deps/xftglyphs.Tpo -c xftglyphs.c -o xftglyphs.o >/dev/null 2>&1
make[1]: Leaving directory `/var/tmp/portage/libXft-2.1.6/work/libXft-2.1.6'
make: *** [all] Error 2

已经用了firefly的local.conf了. 在fc-cache和启动X的时候都说local.conf里有错,

Fontconfig warning: "local.conf", line 89: unknown element "familyoutput"

进入gnome后,字体设置里宋体等字体还是只有一个regular选项

而且我还有一个疑惑, 我们一直在说粗体,可为什么我的桌面字体设置界面里中文字体连斜体都没有(firefox里倒是能看中文斜体)?
 楼主| 发表于 2004-12-6 17:01:43 | 显示全部楼层
大概找到点门路,我补emerge时忘了use glc. 看了一下ebuild好像有要求. libXft就比较邪门了. 看了一下firefly的网站, 有专门针对2.l.6的patch, 怎么中文portage里打的是2.1.2的补丁?不会是个bug吧, 可这么多人不都装过了么?
发表于 2004-12-6 17:23:21 | 显示全部楼层
在一些关于有中文打补丁的可能性的emerge安装前,我一定会这样确认一下::cool:

root@edp ac # ACCEPT_KEYWORDS="~x86" emerge fontconfig -pv

These are the packages that I would merge, in order:

Calculating dependencies  ...done!
[ebuild     UD] media-libs/fontconfig-2.2.3 [2.2.3-r2] +glc* 0 kB[1]

Total size of downloads: 0 kB
Portage overlays:
[1]  /opt/gentoo/glc


:% 这是我的/etc/make.conf的配置,高手请赐教
小菜们,大家互相鼓励一下。

  1. CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -msse2 -mmmx -pipe"
  2. CHOST="i686-pc-linux-gnu"
  3. CXXFLAGS="${CFLAGS}"

  4. #No# of CUPS +1
  5. MAKEOPTS="-j3"

  6. #adopt zh_TW eBuild
  7. #PORTDIR_OVERLAY="/opt/gentoo/got"
  8. PORTDIR_OVERLAY="/opt/gentoo/glc"


  9. USE="-kde -qt -mozilla sse sse2 mmx"
  10. USE="${USE} gtk gtk2 gnome alsa cdr dvd xprint"
  11. USE="${USE} unicode cjk nls zh_TW firefly glc"

  12. GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/ [url]http://ftp.gentoo.or.kr/[/url] [url]ftp://gg3.net/pub/linux/gentoo/[/url] "
  13. #GENTOO_MIRRORS="http://gentoo.osuosl.org [url]http://distro.ibiblio.org/pub/linux/distributions/gentoo[/url]"


  14. #######Desktop Environment #########
  15. FEATURES="candy"
  16. ALSA_CARDS="intel8x0"
复制代码
 楼主| 发表于 2004-12-6 17:32:17 | 显示全部楼层
不是我不确认, 是我根本没记住还要glc这一说.还是查看ebuild文件里的shell程序才弄明白的. 而libXfb则是-pv确认也没用,在portage目录里的文件按我的理解根本就不对, 2.1.6的文件, 打的却是2.1.2的补丁.

另外重新emerge fontconfig后字体设置里的粗体、斜体、粗斜体选项都有了。但是还是显示不出来,看样子libXft是必打的了,可现在这样我怎么打啊.手工,不会啊。自己得做个eBuild就更不会了.

另外akarc兄, firefly这个flag哪个package会用到?
发表于 2004-12-6 17:45:20 | 显示全部楼层
建议这样做:
#ebuild libXft-2.1.6.ebuild merge
#mkdir -p /etc/portage
#echo '=media-lib/fontconfig-2.2.3 ~x86' >> /etc/portage/package.keyword
#emerge =fontconfig-2.2.3
 楼主| 发表于 2004-12-6 17:49:53 | 显示全部楼层
谢谢版主。~x86对fontconfig-2.2.3好像没什么实际意义?因为我不用也能emerge中文portage里的东西,刚才不行是忘了加glc。
版主给的命令是解决libXft-2.1.6的补丁问题的吗?我看portage里只有2.1.2的补丁,不知是否有识为之?
发表于 2004-12-6 19:58:37 | 显示全部楼层
whar is glc?
 楼主| 发表于 2004-12-6 20:56:00 | 显示全部楼层
glc是中文portage定义的一个use flag(我是这么理解的),具体作用就看各package怎么使用了。对fontconfig 2.2.3来说,如果不定义glc,它不会打最新的patch.

        if use glc ; then
                #Some patches from akitto
                epatch ${PPREFIX}-2.2.1-AppleRoman-DynaFont.patch
                #epatch ${PPREFIX}-2.2.1-Bold-conf.patch
                #Some patches from firefly
                #epatch ${PPREFIX}-2.2.1-fclang-miss_1_percent-20030617.patch
                #epatch ${PPREFIX}-2.2.1-include_CJK_charmaps-20030626.patch
                #epatch ${PPREFIX}-2.2.92-add_extra_option-20031207.patch
                #epatch ${PPREFIX}-2.2.3-default_config-glc.patch
                #epatch ${PPREFIX}-2.2.3-multifamily.patch
                for x in ${FILESDIR}/patch/2.2.3/*.patch
                do
                        epatch $x
                done
        fi
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表