Re: ISO-8859-8 font in gnome-terminal on RH8.0



On Thu, Oct 17, 2002 at 11:33:53AM +0200, Uri Elias wrote:
> I would like to use in gnome-terminal an ISO-8859-8 (hebrew) font,
> for example,  /usr/X11R6/lib/X11/fonts/misc/10x20-ISO8859-8.pcf.gz
> In RH 7.2 such font automatically appeared in the font menu as
> "fixed(heb)". In RH 8.0 no suitable font appears in profile -> fonts.
> Is there a way to add a font?  Perhaps from command line?

The terminal's font handling essentially stitching together the various
encodings to handle Unicode properly, so if you can tell the terminal to
treat the data as ISO-8859-8, you can use any font which includes
entries for the characters and it'll show up right.  Right now, though,
it's a little complicated.

First, define a modified version of your usual locale with the desired
encoding (as root).
  localedef -f ISO-8859-8 -i en_US en_US.ISO-8859-8
If your system already includes such a locale (at first glance, he_IL
and iw_IL appears to be included by default in RHL 8), then you can skip
this step.

You should then be able to use
  env LC_CTYPE=en_US.ISO-8859-8 gnome-terminal --disable-factory
to launch a new terminal using that encoding.

There will be a *much* simpler way to do this in the future.

To get the old fixed font back, copy 10x20.pcf from
/usr/X11R6/lib/X11/fonts/misc to your ~/.fonts directory (create the
directory if you don't have one) and then decompress it with gunzip.
You'll then be able to select "Fixed" as your font for the terminal (you
might need to start a new gnome-terminal with --disable-factory, or
close them all first).

> A related question is about background colors.  I kept on the desktop
> launcher icons for terminals on other computers, each with a different
> color, to distinguish them easily.  On RH 7.2 it was done by
> command line "gnome-terminal -bg yellow ...", etc.  How can I make on
> RH 8.0  commands/launchers with different colors?

That information's stored in the profile, so the simplest way is to
create separate profiles (go ahead and change the command for the
profile to "ssh machinename" or some equivalent) and then launch the
terminals with the --window-with-profile argument.

HTH,

Nalin



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