Discussion:
Weird font rendering
Olekhov Vasiliy
2009-07-08 11:38:07 UTC
Permalink
Greetings.

To begin with, here is screenshot:
Loading Image...

the system is Gentoo, font "Terminus". this is raster font.
As you can see, xterm recognizes it and renders it perfect.
The titletabs and statusbar use same font, but cyrillic characters are
substituted from another font.
The locale is ru_RU.UTF-8, and ion recognizes it. At least at
ioncore/ioncore.c check_encoding()
returns TRUE and sets ioncore_g.enc_mb=TRUE and enc_utf8=TRUE.

any suggestions?
Vladimir Skuratovich
2009-07-08 12:04:26 UTC
Permalink
Hi Vasiliy,
Post by Olekhov Vasiliy
Greetings.
http://forumbgz.ru/user/upload/file10231.png
the system is Gentoo, font "Terminus". this is raster font.
As you can see, xterm recognizes it and renders it perfect.
The titletabs and statusbar use same font, but cyrillic characters are
substituted from another font.
The locale is ru_RU.UTF-8, and ion recognizes it. At least at
ioncore/ioncore.c check_encoding()
returns TRUE and sets ioncore_g.enc_mb=TRUE and enc_utf8=TRUE.
any suggestions?
This is because of an incorrect X locale (en_US.UTF-8 for older Xlib
versions, ru_RU.UTF-8 for newer), and is mentioned on the Ion website
(http://modeemi.fi/~tuomov/ion/faq/broken_software.html).

You'll need to replace the file
/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE to something like this:

https://files.getdropbox.com/u/725005/XLC_LOCALE



If you are using Gentoo, I suggest you to use the following modified
ebuild for Xlib:

https://files.getdropbox.com/u/725005/libX11-1.1.5.ebuild

(it expects to find the replacement XLC_LOCALE in its files
directory).

With best regards,
Vladimir
Tuomo Valkonen
2009-07-08 13:35:21 UTC
Permalink
Post by Olekhov Vasiliy
any suggestions?
You mean you want some other font in Ion for cyrillic?
You can _try_ to specify multiple fonts in the fontspec,
separated by commas.... But it probably won't work in
an UTF-8 locale. That part of Xlib is broken, and the
fucktards in power refuse to fix it, instead insisting
that you use their "modern" blur-fascist wheel-reinventing
crap.

A better solution is to just switch to Windows.
--
If I can't choose the music, it's not my revolution.
Sergej Pupykin
2009-07-09 09:29:57 UTC
Permalink
Post by Tuomo Valkonen
A better solution is to just switch to Windows.
Better solution is adding ru_RU.UTF-8 to Xorg. I don't know why they
still didn't it. Most of distros have it without additional
installations.

Loading...