emacs-devel
[Top][All Lists]
Advanced

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

Re: Font pixel size selection


From: James Cloos
Subject: Re: Font pixel size selection
Date: Sun, 15 Jun 2008 07:12:31 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

I posted a bug about this (420), but I didn't see it hit any of the lists.

The font parsing code was recently updated to allow GTK-style font names,
and this broke the parsing of fontconfig-style font patterns.

The comment before font_parse_fcname() in src/font.c correctly specifies
what a fontconfig pattern should look like, and a quick read through
suggests that it ought to do the right thing, by presuming the string is
a fontconfig pattern if it matches <name>:<properties list>.

To get around the bug, I used xfd(1x) and xmag(1x) to figure out what
pointsize matched my desired pixelsize, and changed my ~/.Xdefaults to
specify that, for now.

(At 133 dpi, DejaVu Sans Mono:pixelsize=14  ==  DejaVu Sans Mono-7.4;
that will likely be the same for Vera.  At any other dpi, of course,
it will differ.)

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





reply via email to

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