Re: [dev] [st] font help

From: Eckehard Berns <ecki-suckless_AT_ecki.to>
Date: Mon, 23 Jan 2012 10:50:26 +0100

On Mon, Jan 23, 2012 at 04:21:20AM -0500, Christopher Lunsford wrote:
> I've also installed the terminfo for st, but the screen is still
> garbled. The default font in config.def.h works great however I cannot
> use anyother font.

From your screenshot I would guess that the font pattern you specified
isn't strict enough. St uses the maximum width of all characters in all
fonts in the font set to calculate how wide the characters are. That's
why you have these gaps between the different batches of chars.

I usually specify at least the first four sections, the pxlsize and
maybe the avgWidth, e.g.

 --misc-fixed-medium-r-*-*-14-*-*-*-*-70-*-*

You might have to specify the sWdth and adstyl also (part 5 and 6):

 -misc-fixed-medium-r-normal--14-*-*-*-*-70-*-*

Always leave the last two parts unspecified so that the font system can
load the fonts for different encodings.

If you don't know the font patterns for your font you can use xfontsel
to construct them.

-- 
Eckehard Berns
Received on Mon Jan 23 2012 - 10:50:26 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 23 2012 - 11:00:09 CET