Re: Unicode fonts



Christian Meyer <chrisime uni de> writes:

>> Diese Kästchen tauchen aber GTK-weit auf (auch im Programmen ohne
>> gettext).
>
> aha. ich hab mich halt dummerweise noch nicht mit dem neuen 'SYSTEM'
> befasst.

Vielleicht hilft diese Mail:

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-
From: Pablo Saratxaga <pablo mandrakesoft com>
Subject: Re: how to use unicode in xfree86?
To: gnome-i18n gnome org
Date: Sat, 25 Aug 2001 11:32:02 +0200

Kaixo!

On Sat, Aug 25, 2001 at 08:43:46AM +0200, Karl Eichwalder wrote:

> Good idea; as recommended by Markus Kuhn I start an xterm with a small
> script called ~/bin/uxterm:
> 
> #!/bin/bash
> 
> export LANG=de_DE.UTF-8
> xterm -fn '-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1' \
>       -T 'xterm UTF-8' $*

BTW, couldn't xterm be patched so when launched in utf8 mode it uses
a different default font than "fixed" which is latin1 only ?
 
>> Did anyone tried to use unicode fonts, so one can see at the same time
>> text in different languages?
> 
> Outside GNOME, yes (we'll have to wait for gtk2/pango).

I use it in Gnome too; however of course Gtk 1 is limited to left to right
and 1 codepoint = 1 glyph scripts (that is, 1 codepoint = 1 char = 1 glyph,
plus Thai).
It works well if you have a /etc/gtk/gtkrc.xx_YY.utf8 file with
the proper fontset, it took me some time to figure that out, thanks to
Mr Owen to helping me.

I use this for some languages needed special chars usually not in common
fonts (like cyrillic and latin schwa, cirillic i macron, etc):

tyle "gtk-default" {
  fontset = "-*-clearlyu-medium-r-normal--17-*-*-*-p-*-iso10646-1,*"
}
class "GtkWidget" style "gtk-default"

and this one for languages that can be covered by iso-8859-* sets:

tyle "gtk-default" {
  fontset = "-*-arial-medium-r-normal--14-*-*-*-*-*-iso10646-1,*"
}
class "GtkWidget" style "gtk-default"

and this one for testing Georgian:

tyle "gtk-default" {
  fontset = "-2rebels-bpg utf8 m-medium-r-normal--14-*-*-*-*-*-iso10646-1,*"
}
class "GtkWidget" style "gtk-default"

as you can see it is important to choose the right font depending on the
wanted gyphs.

I patched gtk+ so it can do per-encoding lookups, so I only need to have
the following files: gtkrc.tg_TJ.utf8, gtkrc.az_AZ.utf8 with the first
example, gtkrc.ka_GE.utf8 with the third, and gtkrc.utf-8 with the second,
that will be used as fallback for all UTF-8 locales not having an explicit
gtkrc file for them.

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

-- 
ke suse de (work) / keichwa gmx net (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]