freefont-bugs
[Top][All Lists]
Advanced

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

Re: [Freefont-bugs] a comparison of FreeMono.ttf versions of 2003-06-24


From: James Cloos
Subject: Re: [Freefont-bugs] a comparison of FreeMono.ttf versions of 2003-06-24 and 2008-03-24
Date: Tue, 08 Apr 2008 13:54:55 -0400
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

>>>>> "Joe" == Joe Wells <address@hidden> writes:

Joe> • Document a way (if there is one) that users can tell applications
Joe>   to use this font with a smaller vertical line spacing.

Since xterm allows one to specify a client-side font with a full
fontcofig pattern, you can try adding »:minspace=true« to the pattern.

libXft’s behavior changes with that flag:

,----[ from libXft/src/xftfreetype.c ]
|         if (fi->minspace)
|             height = ascent + descent;
|         else
|             height = face->size->metrics.height >> 6;
`----

The >>6 is for conversion from freetype's 26.6 bit fixed point value to
an integer value, and metrics.height is specified in the font.

I currently use these forms for various programs:

  DejaVu Sans Mono-7.2:minspace=true
  DejaVu Sans Mono:pixelsize=13:minspace=true

(those two give the same results on my (not-quite-ancient) 133dpi laptop).

-JimC
-- 
James Cloos <address@hidden>         OpenPGP: 1024D/ED7DAEA6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]