[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: face-variable-width-p?
From: |
David Reitter |
Subject: |
Re: face-variable-width-p? |
Date: |
Tue, 26 Feb 2008 04:24:35 -0800 (PST) |
User-agent: |
G2/1.0 |
On Feb 17, 5:09 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> So perhaps there's
> a bug in xlfd-tight-regexp that can be worked around:
>
> (let ((font (frame-parameter (selected-frame) 'font)))
> (string-match xlfd-tight-regexp font)
> (match-string (1+ xlfd-regexp-spacing-subnum) font))
>
> A variable-width font (aka proportional pitch) should return "p"
> -- see section 3.1.2.10 (SPACING Field)
> inhttp://ftp.xfree.org/pub/XFree86/4.5.0/doc/xlfd.txt
Nice idea for a hack, but it doesn't work for me.
This returns "m" no matter what.
Some examples on my machine:
"-apple-times new roman-medium-r-normal--12-120-72-72-m-120-
iso10646-1"
"-apple-lucida grande-medium-r-normal--14-140-72-72-m-140-iso10646-1"
"-apple-monaco-medium-r-normal--12-120-72-72-m-120-iso10646-1"
I can't see any indication of mono/variable width here.