emacs-devel
[Top][All Lists]
Advanced

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

Re: Font pixel size selection


From: Yuan MEI
Subject: Re: Font pixel size selection
Date: Sun, 15 Jun 2008 17:04:54 -0500

I think the only problem here is :pixelsize=14

Fontconfig has the format:

<families>-<point sizes>:<name1>=<values1>:<name2>=<values2>

which indicates the number should be `point size', therefore the
actual on screen pixel size could be calculated as <point size>/72*dpi

However, it should also allow user to specify the pixel size directly
through something like :pixelsize=14

Y. M.

On 6/15/08, James Cloos <address@hidden> wrote:
> 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
>
>


-- 
Yuan MEI




reply via email to

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