Marc Lehmann wrote:  [Mon May 11 2009, 11:06:08PM EDT]
> On Mon, May 11, 2009 at 05:41:21PM -0400, Aron Griffis <[email protected]> 
> wrote:
> > The current behavior of urxvt is to produce terminals of
> > different widths depending on underlying xft libraries, whereas
> 
> So it seems waht is inconsisitent is the underlying xft (or freetype)
> libraries.

Yes, I agree, except that somehow gnome-terminal copes.  Possibly
its method is wallpapering over a problem that should be fixed
elsewhere, but I'm not sure yet.

> On Mon, May 11, 2009 at 07:57:02PM -0400, Aron Griffis <[email protected]> 
> wrote:
> > Note this is different from rxvt-unicode which includes
> > double-width fonts in the rendering test, despite the comment in
> > rxvtfont.C:
> 
> Can you explain the "despite the comment"? The comment doesn't claim pango
> uses double-width characters. (assuming you mean characters when you say
> fonts, as only one font is involved).

Sorry, the comment refers to pango and I was thinking of libvte,
and clearly the methods are different between those two.  My
mistake.

> The problem is that when you ask freetype for a width, you sometimes get
> the width of a double-wide character as base width, and sometimes that of
> a single-width character. This is why urxvt has to measure it.

*nod*

> It doesn't help that many gnome programs, xterm and some terminal apps use
> their own hardcoded table of character widths instead of relying on the
> user-configured locale, as urxvt (and again, others) do.
> 
> I don't think this makes for the difference, however. Most likely urxvt
> uses the spacing, while gnome-terminal the glyph width (both of which have
> advantages and disadvantages).

Could you elaborate on the advantages/disadvantages?

> > properly on my one system (Debian).  On my other system (Ubuntu
> > Jaunty) I can't figure out the correspondance between the font
> > sizes I request in gnome-terminal and the font sizes I request
> > with size= or pixelsize= in urxvt. :-(
> 
> The letter spacing has nothing to do with font sizes. I would *expect*
> gnome-terminal to use the equivalent of "size=", though, and wold be
> surprised if it used it's own

I think it must, based on my experimentation.

> In any case, your problem likely boils down to using a low-quality font that
> is not suitable for charcell displays. Font quality plays a big role with
> xft.

I was testing with DejaVu Mono, which I thought was high-quality
but I could be mistaken.  Do you have another suggestion?

Aron

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to