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

Re: .xResources? how do you handle it in X4?



On Fri, Jan 12, 2001 at 08:19:59PM +0100, Juliusz Chroboczek wrote:
> DP> The main thing I want to do is to replace font "fixed" with
> DP> "-cronyx-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r"
> 
> Are you sure that you still have the Cronyx fonts on your system (try
> xlsfonts, xfontsel, xfd).  Recent versions of XFree86 come with a
> standard set of KOI8-R-encoded fonts in the ``-misc-fixed'' family,
> and the Cronyx fonts are no longer needed.

Yes, cronyx is still there.  It comes from xfonts-cyrillic.  But you're
right, now that xfonts-base has its own koi8 fonts, looks like
xfonts-cyrillic is now redundant.  For my purposes, seems like
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r 
is what I want.

> 
> By the way, you should not use KOI8-R fonts without switching to the
> relevant locale.  Weird things will happen otherwise (think conversion
> between lowercase and uppercase, selection conversion, etc.)
> 

It seems to operate OK. For the shell, just I need any 8bit locale defined
(en_AU is fine ;) )  European accents simply appear as cyrillic letters,
that's all.   Apart from emacs, I use it mainly in mutt, and have
the default charset set to koi8.  Speaking of which, there was this strange
behaviour with Jerome's mail on this list, where the message list would
display "Jerome" correctly with the appropriate european accents, but inside
the message the fancy letters were replaced with '?'  Seemed a bit
inconsistent to me.

> DP> but they aren't recognised anymore.
> 
> Neither Eterm nor Emacs use standard X11 facilities for selecting
> fonts.  What happens if you do the same to XTerm or xedit?
> 

You're right, 
  xterm -fn -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
works fine.  

I don't know how to set it by default in .xResources though.
xterm.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
doesn't seem to work.


Anyway, I have discovered a different solution.  The xfonts-cyrillic package
has its own list of font names, apparently designed to override the standard
choices in xfonts-base.  /usr/X11R6/lib/X11/fonts/cyrillic/fonts.alias has:

fixed  -cronyx-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-koi8-r
6x10  -cronyx-fixed-medium-r-normal--10-100-75-75-c-60-koi8-r
...

So it is defining "fixed" itself.  So, I can get this to operate
preferentially by putting these fonts in front of base font in XF86Config-4:
  FontPath        "/usr/lib/X11/fonts/cyrillic"
  FontPath        "/usr/lib/X11/fonts/misc"
instead of 
  FontPath        "/usr/lib/X11/fonts/misc"
  FontPath        "/usr/lib/X11/fonts/cyrillic"

Maybe another solution, to use misc-fixed instead of cronyx-fixed, is to
fiddle with the fonts.alias file in fonts/misc.  Is there any way of doing
this so fonts.alias is not overriden every time xfonts-base is upgraded?



> DP> And speaking of fonts, why does Netscape look so bizarre in X4?
> DP> The menu font is HUGE, just as with emacs, the letters appear
> DP> twice as large as they were in X3.
> 
> Either Netscape uses underspecified fonts, or else it choses its font
> size depending on the actual resolution (as in pixels per inch) of the
> display.  In 3.*, the dimension of the display was defaulted by the
> server; in 4.*, the server queries your monitor for its actual
> dimensions.  Some monitors provide incorrect values.
> 
> Search for something like the following in your log file.
> 
>   (II) S3VIRGE(0): Max H-Image Size [cm]: horiz.: 23  vert.: 17
> 

I've got the same, modulo s3virge problems:
(II) VESA(0): Max H-Image Size [cm]: horiz.: 23  vert.: 17

I suspect the problem is because I'm using a virtual display of 1024x768,
while the real resolution of the monitor is 800x600 (laptop LCD display).  I
need the extra resolution because some programs (e.g. grace) seem to assume
1024x768, and menu box go off the screen otherwise.  The screen's size is
"12inches".

> Sorry, I don't remember right now how to override the automatically
> determined value.
> 

Neither do I :)

Drew

-- 
PGP public key available at http://dparsons.webjump.com/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0  EC0A B6CE 7041 6412 4E4A



Reply to: