无双TM 发表于 2006-4-15 19:12:52

复制中文字体问题

窗口标题与菜单等要显示中文的话需要修改configure里面的fonts settings对话框

1 使用fc-list看现在系统中有什么字体
wushuang:~/.e/e/applications/all# fc-list
Bitstream Vera Sans Mono:style=Bold
Bitstream Vera Sans:style=Oblique
OpenSymbol:style=Regular
Vera Sans YuanTi Mono:style=Bold
Bitstream Vera Sans:style=Roman
Bitstream Charter:style=Bold Italic
Vera Sans YuanTi Mono:style=Italic
NSimSun,新宋体ºstyle=Regular
FreeSerif:style=Bold,polkrepko
Cursor:style=Regular
FreeSerif:style=Italic,ležeÄ

VirusCamp 发表于 2006-4-16 00:19:42

gentoo 用e17.build.sh编译到edje出错,下面所有相关的包都失败

好像 cvs 里少了一个文件, 我把以前在 mdv 下cvs 的那个文件 cp 过去, 就编译过了.

Freezesnake 发表于 2006-4-16 02:40:36

这标题还有菜单里的字体显示不全该怎么搞?
那个标题栏和菜单栏就不能放大吗?

yvesyang 发表于 2006-4-16 17:15:50

在Ubuntu上也编译成功运行了,就是有几个问题请教一下无双:

mplayer无法正常运行,程序运行后,点中键有mplayer显示,但是界面上无mplayer的界面;

e-get站点上下载的edj格式的模块无法直接使用,总是报缺.mo;

用你blog上的加中文字体再编译的办法编译通不过,安装好后再拷贝字体(Uming.ttf)绝大部分能正常显示,就是字体一小就发虚,启动动画里还是无法显示中文,电池容量显示字体也是方块。

还有一个奇怪的问题,就是浏览器的字体大小很奇怪,和gnome 里比起来偏大。

无双TM 发表于 2006-4-17 12:55:34

修改E17的fallback字体应该也可以达到显示中文的效果

标题栏的放大需要修改theme文件 需要下载e17/apps/e源码
3 修改标题栏上字体高度:
    修改 e17/apps/e/data/themes/default_border.edc
    color3: 255 255 255 128;
    text {
    text: "";
    font: "Edje Vera";
    size: 10; // 这里修改成13 这样显示中文更清楚
    min: 0 1;
    align: 0.0 0.5;
    text_class: "title_bar";
    }
如果你不想全部编译源码的话, 可以下载 e17/apps/e, 然后编辑上面的值,
然后运行
autogen.sh
make
这时新布局文件应该已经生成,试在e17/apps/e/data目录下查找default.edc文件,并把它代替E17的默认布局

菜单放大应该也差不多 我没试过

有些字不显示? 没见过会不会是因为你的中文字体不全 然后引起的 可能是你的freetype配置有问题
字体发虚是AA的问题, 修改/etc/fonts里面的配置文件把AA关闭就可以了, 可以看论坛上的中文美化贴子

get-e.org上的edj文件可能有些老了, 因为theme一直在变化
当然你可以试试解决看 如找看是哪个mo没有然后自己试手动做个链接过去

firefox里面可能是你配置字体时没有配置好吧, 如限制了字体的最小高度, 这样它显示的变会变大

mplayer问题, 会不会是因为它最小化了, 在菜单里面的窗口列表里面点一下看看
或是你启动的是mplayer而不是gmplayer
gmplayer才是有界面的

cobranail 发表于 2006-4-17 19:51:05

fallback的时候,最好用prepend,因为有个顺序问题

Freezesnake 发表于 2006-4-17 20:21:02

我的意思就是因为菜单和标题不够高,所以字体放到12号或以上大小时,只能显示下面一半……
e17漂亮是漂亮,就是真麻烦……

无双TM 发表于 2006-4-18 10:04:49

我现在就用到12
13的话字体是会屏掉一部分

Freezesnake 发表于 2006-4-18 11:04:00

12号大概也被屏蔽了三分之一……

atfa 发表于 2006-4-18 11:21:31

gentoo 用e17.build.sh编译到edje出错,下面所有相关的包都失败

好像 cvs 里少了一个文件, 我把以前在 mdv 下cvs 的那个文件 cp 过去, 就编译过了.


晕 ,哪个文件啊……

cobranail 发表于 2006-4-18 13:55:47

到enlightenment.freedesktop.org下载一个edje试试看

无双TM 发表于 2006-4-18 20:13:49

gentoo 用e17.build.sh编译到edje出错,下面所有相关的包都失败

好像 cvs 里少了一个文件, 我把以前在 mdv 下cvs 的那个文件 cp 过去, 就编译过了.


晕 ,哪个文件啊……

你把出错代码放上来看看吧

fangweionline 发表于 2006-4-19 08:31:30

:x:x:x:x:x8)8)8)8)8):twisted::twisted:

atfa 发表于 2006-4-19 21:56:57

我编译edje时错误信息如下

edje_embryo.c: In function `_edje_embryo_fn_get_str':
edje_embryo.c:284: warning: assignment makes pointer from integer without a cast
edje_embryo.c: In function `_edje_embryo_fn_fetch_str':
edje_embryo.c:510: warning: assignment makes pointer from integer without a cast
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_data.c -o edje_data.o >/dev/null 2>&1
edje_embryo.c: In function `_edje_embryo_fn_get_text':
edje_embryo.c:982: warning: assignment makes pointer from integer without a cast
edje_embryo.c: In function `_edje_embryo_fn_custom_state':
edje_embryo.c:1470: warning: assignment makes pointer from integer without a cas t
edje_embryo.c:1475: warning: assignment makes pointer from integer without a cas t
edje_embryo.c:1487: warning: assignment makes pointer from integer without a cas t
edje_embryo.c:1494: warning: pointer/integer type mismatch in conditional expres sion
edje_embryo.c:1495: warning: pointer/integer type mismatch in conditional expres sion
edje_embryo.c:1496: warning: pointer/integer type mismatch in conditional expres sion
edje_embryo.c:1497: warning: pointer/integer type mismatch in conditional expres sion
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. - I. -I../.. -I../.. -I../.. -I/usr/include      -O2 -c edje_load.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_embryo.c -o edje_embryo.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. - I. -I../.. -I../.. -I../.. -I/usr/include      -O2 -c edje_main.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_load.c-fPIC -DPIC -o .libs/edje_load.o
edje_load.c: In function `edje_object_file_set':
edje_load.c:60: warning: assignment makes pointer from integer without a cast
edje_load.c:62: warning: assignment makes pointer from integer without a cast
edje_load.c:153: warning: assignment makes pointer from integer without a cast
edje_load.c:230: warning: assignment makes pointer from integer without a cast
edje_load.c:293: warning: assignment makes pointer from integer without a cast
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_main.c-fPIC -DPIC -o .libs/edje_main.o
edje_load.c: In function `edje_file_collection_list':
edje_load.c:418: warning: assignment makes pointer from integer without a cast
edje_load.c:432: warning: passing arg 2 of `evas_list_append' makes pointer frominteger without a cast
edje_load.c: In function `edje_file_data_get':
edje_load.c:483: warning: assignment makes pointer from integer without a cast
edje_load.c:495: warning: assignment makes pointer from integer without a cast
edje_main.c: In function `_edje_add':
edje_main.c:61: warning: assignment makes pointer from integer without a cast
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_main.c -o edje_main.o >/dev/null 2>&1
edje_load.c: In function `_edje_file_add':
edje_load.c:760: warning: assignment makes pointer from integer without a cast
edje_load.c:821: warning: assignment makes pointer from integer without a cast
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. - I. -I../.. -I../.. -I../.. -I/usr/include      -O2 -c edje_misc.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_load.c -o edje_load.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. - I. -I../.. -I../.. -I../.. -I/usr/include      -O2 -c edje_program.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_misc.c-fPIC -DPIC -o .libs/edje_misc.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_misc.c -o edje_misc.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. - I. -I../.. -I../.. -I../.. -I/usr/include      -O2 -c edje_smart.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_program.c-fPIC -DPIC -o .libs/edje_program.o
edje_program.c: In function `edje_object_signal_callback_add':
edje_program.c:56: warning: assignment makes pointer from integer without a cast
edje_program.c:57: warning: assignment makes pointer from integer without a cast
edje_program.c:58: warning: assignment makes pointer from integer without a cast
edje_program.c: In function `_edje_program_run':
edje_program.c:428: warning: assignment makes pointer from integer without a cas t
edje_program.c:430: error: `RAND_MAX' undeclared (first use in this function)
edje_program.c:430: error: (Each undeclared identifier is reported only once
edje_program.c:430: error: for each function it appears in.)
edje_program.c:460: warning: assignment makes pointer from integer without a cas t
make[3]: *** [edje_program.lo] 错误 1
make[3]: *** 正在等待未完成的任务....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_smart.c-fPIC -DPIC -o .libs/edje_smart.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I/usr/in clude -O2 -c edje_smart.c -o edje_smart.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/edje-0.5.0.013/work/edje-0.5.0.013/ src/lib'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/var/tmp/portage/edje-0.5.0.013/work/edje-0.5.0.013/ src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/edje-0.5.0.013/work/edje-0.5.0.013'
make: *** [all-recursive-am] 错误 2
* Please do not contact the E team about bugs in Gentoo.
* Only contact [email protected] via e-mail or bugzilla.
* Remember, this stuff is CVS only code so dont cry when
* I break you :).

!!! ERROR: media-libs/edje-0.5.0.013 failed.
Call stack:
ebuild.sh, line 1533:   Called dyn_compile
ebuild.sh, line 930:   Called src_compile
ebuild.sh, line 1243:   Called enlightenment_src_compile
enlightenment.eclass, line 146:   Called enlightenment_die 'emake failed'
enlightenment.eclass, line 97:   Called die

!!! emake failed
!!! SEND BUG REPORTS TO [email protected] NOT THE E TEAM
!!! If you need support, post the topmost build error, and the call stack if rel evant.

emerge exit code 1

Error merging media-libs/edje! Continue ? [y/n]

无双TM 发表于 2006-4-20 09:28:52

在上面看到的第一个错误是
edje_program.c:430: error: `RAND_MAX' undeclared (first use in this function)

RAND_MAX这个是包括在libc6-dev里面的stdlib.h文件

所以会不会是因为环境问题

或换下最新的代码看看

或是看./configure 时的输出 (这时会检查需要的头文件与函数)
页: 1 [2] 3 4
查看完整版本: 最新的E17截图