Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users 中文 (Chinese)
  • Search

[solved]Fcitx and Sans font

欢迎来到Gentoo中文论坛。
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
tai
n00b
n00b
Posts: 65
Joined: Mon Nov 27, 2006 6:22 am

[solved]Fcitx and Sans font

  • Quote

Post by tai » Thu Dec 21, 2006 6:22 am

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: Select all

XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_PROGRAM=fcitx
along with this:

Code: Select all

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: Select all

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.
Top
galilette
n00b
n00b
Posts: 22
Joined: Mon Jan 17, 2005 11:42 am

  • Quote

Post by galilette » Thu Dec 21, 2006 6:53 am

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.
Top
tai
n00b
n00b
Posts: 65
Joined: Mon Nov 27, 2006 6:22 am

  • Quote

Post by tai » Thu Dec 21, 2006 7:14 pm

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.
Top
tai
n00b
n00b
Posts: 65
Joined: Mon Nov 27, 2006 6:22 am

  • Quote

Post by tai » Fri Dec 22, 2006 1:15 am

I solved the problem by changing my sans font to Bitstream Vera Sans.
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “中文 (Chinese)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy