Bug 176306 - unable to start miniChinput due to font setting
Summary: unable to start miniChinput due to font setting
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: miniChinput
Version: 3.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Qingyu Wang
QA Contact: Bill Huang
Keywords: i18n
Depends On:
TreeView+ depends on / blocked
Reported: 2005-12-21 04:26 UTC by Lawrence Lim
Modified: 2014-03-26 00:52 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2005-12-22 04:58:22 UTC

Attachments (Terms of Use)

Description Lawrence Lim 2005-12-21 04:26:29 UTC
Description of problem:
chinput is not able to start because it tires to load a font which does not exist.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.open terminal and run the command 'chinput'
Actual results:
Chinput Version 3.0.2 -- XIM Server
Distributed under the terms of the GNU General Public License (GPL)
Basic: Cannot open font -misc-zysong18030-medium-r-normal--0-0-0-0-c-0-iso10646-1

Expected results:
starts chinput properly

Additional info:
Checked with maintainer and confirmed the changes made to the file
/usr/lib/Chinput/Chinput.ad, will allow the chinput to start properly.

--- /usr/lib/Chinput/Chinput.ad 2005-12-20 23:23:09.000000000 -0500
+++ /usr/lib/Chinput/Chinput.ad.new     2005-12-20 23:25:41.000000000 -0500
@@ -66,9 +66,9 @@
 ! 16 point font set
 chinput.font                   =       8x16
-chinput.gbfont                  =      
-chinput.gbkfont                  =     
-chinput.gb18030font             =      
+chinput.gbfont      = -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
+chinput.gbkfont     =  -*-*-*-*-*--0-0-0-0-*-0-gbk-0
+chinput.gb18030font =  -*-*-*-*-*--0-0-0-0-*-0-iso10646-1
 chinput.big5font               =      

Comment 1 Qingyu Wang 2005-12-21 10:13:39 UTC
After I research it in more detail I found that this is not the bug of
miniChinput. The occurrence of this problem because the system didn't config
fonts correctly. If you execute command "xlsfonts" you will find there is no
font name about zysong18030 in the list. To config fonts correctly just need to
execute the following commands: 
$ xset +fp /usr/share/fonts/zh_CN/TrueType
$ xset fp rehash 
And then without changing Chinput.ad, miniChinput will also start OK.

Comment 2 Lawrence Lim 2005-12-21 15:21:44 UTC
That's great but that would that involved having end users to entering the
command everytime the system restarts? If so, perhaps modifying Chinput.ad and
rebuild the package will be more beneficial to end users. What do you think?

Comment 3 Leon Ho 2005-12-22 01:18:27 UTC
Can someone look into the problem when X does not include fontpath of
/usr/share/fonts/zh_CN/TrueType. i.e. Please check /etc/X11/fs/config? 

Comment 4 Qingyu Wang 2005-12-22 04:57:03 UTC
This problem occurs because of the use of vnc. After re-setup vncserver the
problem is gone and miniChinput starts OK.

Comment 5 Lawrence Lim 2005-12-22 05:00:52 UTC
Thanks for looking into this issue so promptly. Starting vnc with the X font
server using -fp option will allow the fonts to load properly.

vncserver -geometry 800x600  -fp unix/:7100

Note You need to log in before you can comment on or make changes to this bug.