src/rxvtfont.C ascent/descent and g.xOff patch

Marc Lehmann schmorp at schmorp.de
Tue Jan 21 10:08:45 CET 2014


On Tue, Jan 21, 2014 at 01:24:39AM +0200, clutton <clutton at zoho.com> wrote:
> I was trying to fix enormous font width for urxvt running on FreeBSD.
> The fonts I have are «Monaco» and «PragmataPro».

Please look at previous discussions - the patch is incorrect. rxvt-unicode
requires a charcell font (basically a font suitable for a use in a grid
such as used interminals). Basically, your fonts have very wide glyphs,
and urxvt has to accomodate them.

> + * bukind: don't use g.width as a width of a character!
> + * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial

According to that very url, xOff is *wrong*, as it is the spacing to the
next glyph. "width" is correct, as we need the glyph width (the spacing is
constant in a terminal).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\




More information about the rxvt-unicode mailing list