Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Fcitx and Sans font
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
tai
n00b
n00b


Joined: 27 Nov 2006
Posts: 65

PostPosted: Thu Dec 21, 2006 6:22 am    Post subject: [solved]Fcitx and Sans font Reply with quote

hi all,

I recently installed fcitx because i wanted to type chinese under gentoo.
Upon reading some docs, i saw that i have to use these env vars:
Code:

XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_PROGRAM=fcitx


along with this:

Code:

LC_CTYPE="zh_CN"


to get fcitx working.

But whenever i use LC_CTYPE="zh_CN" my system fonts (sans and monospace) are messed up and look really ugly. After removing this and update my env variables everything is fine except that fcitx can't type.
Is there a workaround that i can somehow keep LC_CTYPE and still get my old font?

Here are all my fonts, are any unnecessary/some more to be added?

Code:

Section "Files"

        FontPath     "/usr/share/fonts/util"
        FontPath     "/usr/share/fonts/encodings"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/corefonts"
        FontPath     "/usr/share/fonts/freefont"
        FontPath     "/usr/share/fonts/default"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/Type1"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/arphicfonts"
        FontPath     "/usr/share/fonts/default/ghostscript"
        FontPath     "/usr/share/fonts/wqy-bitmapfont"
        FontPath     "/usr/share/fonts/ttf-bitstream-vera"

EndSection


Thanks a lot,

Tai


Last edited by tai on Fri Dec 22, 2006 1:15 am; edited 1 time in total
Back to top
View user's profile Send private message
galilette
n00b
n00b


Joined: 17 Jan 2005
Posts: 22

PostPosted: Thu Dec 21, 2006 6:53 am    Post subject: Reply with quote

fcitx should work with both zh_CN.* and en_US.UTF8. The easiest way is set LC_CTYPE to be en_US.UTF8, say in your ~/.xinitrc file.

If for some reason that doesn't work, there's a more tedious way. Prepend "LC_CTYPE=zh_CN" every time you start fcitx AND the applications to which you want to input Chinese. LC_CTYPE is then made local and won't affect others. But maybe these individual app's will turn up ugly.

Of course you can tune your fontconfig settings instead.
Back to top
View user's profile Send private message
tai
n00b
n00b


Joined: 27 Nov 2006
Posts: 65

PostPosted: Thu Dec 21, 2006 7:14 pm    Post subject: Reply with quote

Neither of those worked. For the second one, exporting LC_CTYPE="zh_CN" after i start applications doesnt work..fcitx won't let me type.
How would i change my font configs? I mean, i want to use Sans and monospace.
Back to top
View user's profile Send private message
tai
n00b
n00b


Joined: 27 Nov 2006
Posts: 65

PostPosted: Fri Dec 22, 2006 1:15 am    Post subject: Reply with quote

I solved the problem by changing my sans font to Bitstream Vera Sans.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum