non-ascii characters in Gtk+
From: Alexander Nikolov (at_nikolovNOSPAM_at_mnet.bg)
Date: 01/28/04
- Next message: linuxquestion_at_yahoo.com: "Source files compiled. Why no loadable module?"
- Previous message: Tim Roberts: "Re: desktop resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jan 2004 16:32:39 +0200
I am using KDE 3.1.3 on a Gentoo system. I have gtk+-1.2.10-r10, gtk+-2.2.4-r1
installed. My locale is bg_BG.CP1251(bulgarian with windows-cp1251 cyrillic
encoding). When I try to use a Gtk+2 app such as Gaim boxes with numbers inside
are displayed instead of cyrillic characters. It is the same with a wxGTK app
such as xMule.
I have installed cronyx cyrillic fonts with cp1251 and Ms Windows ttf
fonts. This is the content of my /etc/X11/gtk/gtkrc.bg_BG.CP1251 file:
,----
| style "gtk-default-cp1251" {
| fontset = "-monotype-Times New Roman-bold-r-normal--0-0-0-0-p-0-microsoft-cp1251,\
| -cronyx-helvetica-medium-r-normal--*-*-*-*-*-*-microsoft-cp1251,\
| -cronyx-courier-medium-r-normal--*-*-*-*-*-*-microsoft-cp1251,\
| -cronyx-times-medium-i-normal--*-*-*-*-*-*-microsoft-cp1251"
| }
| class "GtkWidget" style "gtk-default-cp1251"
|
`----
The first one is a ttf font. All font names are taken from fonts.dir files in
the respective diretories. The file /etc/X11/gtk/gtkrc.bg_BG.CP1251 is a
symlink to /etc/X11/gtk/gtkrc.bg which is a symlink to
/etc/X11/gtk/gtkrc.cp1251. I have symlinked /etc/X11/gtk to /etc/gtk and
/etc/X11/gtk/gtkrc.bg_BG.CP1251 to /etc/gtk-2.0. When nothing worked I created
a ~/.gtkrc-2.0 with the following content:
,----
|
| gtk-font-name = "Times New Roman 12"
|
| gtk-key-theme-name = "Emacs"
`----
This did change the font for Gaim and xMule but didn't stop them from
displaying cyrillic characters as boxes with numbers inside. Still this is a
windows ttf font and it is capable of displaying cp1251-encoded text- I can use
it successfully in KDE, for example, to write in cyrillic.
Any help appreciated.
-- export AUTHOR=Alex\ Nikolov echo $AUTHOR
- Next message: linuxquestion_at_yahoo.com: "Source files compiled. Why no loadable module?"
- Previous message: Tim Roberts: "Re: desktop resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|