[Q] xft recipe

Didier Verna didier at xemacs.org
Tue Feb 19 04:53:51 EST 2008


Aidan Kehoe <kehoea at parhasard.net> wrote:

>  Ar an dara lá de mí na Samhain, scríobh Didier Verna: 
>
>  > I would like to give xft a try, but I can't manage to get something
>  > close to my current font setting, which is like this (from
>  > XEmacs'xrdb file):
>  > 
>  > XEmacs.default.attributeFont:
>  > -adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1
>  >
>  > XEmacs*font:
>  > -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1

> This, in my ~/.Xdefaults: [...] gives me two identical frames on my
> local machine, with one frame belonging to an XEmacs build with
> server-side fonts and with X defaults not reflecting XEMACS_XFT, and
> the other frame belonging to an XEmacs build with Xft fonts and with X
> defaults reflecting XEMACS_XFT. This requires a) that XFT believes
> that the display has the same DPI as does the X server and b) that XFT
> has access to the same font files on disk.

> To check what font file XFT uses for a given pattern, try, for
> example,
>
> fc-match -v 'Helvetica-12:style=bold' | grep file
>
> This gives file: "/usr/X11R6/lib/X11/fonts/75dpi/helvB12.pcf.gz" 
> for me. When I grep for helvB12.pcf.gz in
> /usr/X11R6/lib/X11/fonts/75dpi/helvB12.pcf.gz, I get this:
>
> helvB12.pcf.gz -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso10646-1
>
> which matches your server-side pattern sufficiently that I’m reasonably sure
> it’s the same font. 

  I get the same result here, with the consequence that the fonts are
actually not smoothed at all. On the contrary, the same settings on my
Mac (XEmacs compiled for X11, not the carbon port) gives me a smoothed
Courier font which looks nicer (although the font appears somewhat
larger than the non-Xft one).

Is there a way to get something similar on my Debian box ?

-- 
5th European Lisp Workshop at ECOOP 2008, July 7: http://elw.bknr.net/2008/

Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-Bicêtre, France   Fax.+33 (0)1 53 14 59 22  didier at xemacs.org



More information about the XEmacs-Beta mailing list