matlinuxer2 / ucimf

Automatically exported from code.google.com/p/ucimf
9 stars 3 forks source link

字体显示不佳 #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
字体显示不佳,ucimf输入框中的字很粗。我试过unifont没有问��
�,wenquanyi micro hei就会很粗。

Original issue reported on code.google.com by MatLinuxer2 on 31 Aug 2010 at 10:56

GoogleCodeExporter commented 9 years ago
配置字体好像不起作用的。

Original comment by chguo...@gmail.com on 20 Mar 2011 at 1:43

GoogleCodeExporter commented 9 years ago
Sorry, it's my fault. 

請問你使用的字型是那一個呢?

Original comment by MatLinuxer2 on 15 Apr 2011 at 3:12

GoogleCodeExporter commented 9 years ago
fbterm+ucimf是我用过的控制台下最好用的中文组合了 :-)
非常支持你完善这套系统!

不管在/etc/ucimf.conf里配置的字体是什么,实际显示出来的都��
�默认的字体。
我在fbterm里配置的字体是Consolas和仿宋字体。
这会是什么问题呢?

Original comment by chguo...@gmail.com on 15 Apr 2011 at 6:54

GoogleCodeExporter commented 9 years ago
非常感謝你的 feedback!

我猜測有可能和的 fontconfig 設定檔有關。( /etc/fonts/fonts.conf, 
~/.fonts.conf )
一般來說我會用 `fc-match -s <font name> | head -3` 來檢查字型
( 如 fc-match -s "MingLiu" | head -3 )
想詢問一下你在執行這個指令時,會輸出什麼結果?

我的輸出結果大致像這樣: 
mingliu.ttc: "MingLiU" "Regular"
ter-112n.pcf.gz: "Terminus" "Regular"
ter-x12n.pcf.gz: "Terminus" "Regular"

目前因為畫字的程式還處理的不是很好,所以目前只有幾個��
�定字型( ex: unifont )的顯示外觀較好。

Original comment by MatLinuxer2 on 15 Apr 2011 at 12:45

GoogleCodeExporter commented 9 years ago
由于我的系统是ubuntu-10.10,所以执行 fc-match -s "MingLiu" 
有很多匹配的字体,前三个是
mingliu.ttc: "MingLiU" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"

Original comment by chguo...@gmail.com on 15 Apr 2011 at 2:01

GoogleCodeExporter commented 9 years ago
謝謝你的 feedback!

我這兩天測起來,選字好像有時候不太正確,詳細原因還在��
�。

BTW, 我想再確認一下你使用的版本,是 libucimf-2.3.7 還是 2.3.8?

Thanks!

Original comment by MatLinuxer2 on 17 Apr 2011 at 6:45

GoogleCodeExporter commented 9 years ago
怎样确定libucimf的版本?
我安装的是libucimf0的软件包,用ldd 
/usr/bin/fbterm_ucimf的结果是这样的:
    linux-gate.so.1 =>  (0x00aca000)
    libucimf.so.0 => /usr/lib/libucimf.so.0 (0x001c3000)
    libltdl.so.7 => /usr/lib/libltdl.so.7 (0x0080d000)
    libdl.so.2 => /lib/libdl.so.2 (0x00bfc000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00e19000)
    libz.so.1 => /lib/libz.so.1 (0x00b89000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x0093d000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x001dd000)
    libm.so.6 => /lib/libm.so.6 (0x0067f000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00162000)
    libc.so.6 => /lib/libc.so.6 (0x00502000)
    /lib/ld-linux.so.2 (0x004b0000)
    libexpat.so.1 => /lib/libexpat.so.1 (0x00110000)

Original comment by chguo...@gmail.com on 17 Apr 2011 at 7:51

GoogleCodeExporter commented 9 years ago
可以用

`pkg-config --modversion libucimf`

或是 (for debian/ubuntu )

`dpkg -l |grep ucimf` 

來看相關套件的版本。

Original comment by MatLinuxer2 on 17 Apr 2011 at 10:19

GoogleCodeExporter commented 9 years ago
谢谢!我的libucimf的版本是2.3.7-1:
ii  fbterm-ucimf 0.2.9-1 ucimf input method interface for fbterm
ii  libucimf0    2.3.7-1 library for unicode console input method framework
ii  ucimf        2.3.7-1 uicode console input method framework
ii  ucimf-openvanilla   2.10.11-1 openvanilla input method collection for ucimf

Original comment by chguo...@gmail.com on 17 Apr 2011 at 12:36

GoogleCodeExporter commented 9 years ago
收到。 感謝回覆!

Original comment by MatLinuxer2 on 17 Apr 2011 at 5:18

GoogleCodeExporter commented 9 years ago
在 ucimfrc 中设定 font-name = Monospace(被 fontconfig 映射为 Dejavu 
Sans 或文泉驿正黑)或其它任何 ttf 
字体时,字体很粗且边缘模糊不清,如附件中 scr-ttf.png 
所示;而在 ucimfrc 中设定 font-name = unifont.pcf 
时,效果正常,如附件中 scr-pcf.png 所示。
我怀疑问题出在对 truetype 字体的支持上面。

Original comment by CasperVector on 14 Aug 2011 at 12:17

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by MatLinuxer2 on 14 Aug 2011 at 1:10