| View previous topic :: View next topic |
| Author |
Message |
tai n00b

Joined: 27 Nov 2006 Posts: 65
|
Posted: Thu Dec 21, 2006 6:22 am Post subject: [solved]Fcitx and Sans font |
|
|
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:
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 |
|
 |
galilette n00b

Joined: 17 Jan 2005 Posts: 22
|
Posted: Thu Dec 21, 2006 6:53 am Post subject: |
|
|
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 |
|
 |
tai n00b

Joined: 27 Nov 2006 Posts: 65
|
Posted: Thu Dec 21, 2006 7:14 pm Post subject: |
|
|
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 |
|
 |
tai n00b

Joined: 27 Nov 2006 Posts: 65
|
Posted: Fri Dec 22, 2006 1:15 am Post subject: |
|
|
| I solved the problem by changing my sans font to Bitstream Vera Sans. |
|
| Back to top |
|
 |
|