all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: face-variable-width-p?
Date: Tue, 26 Feb 2008 04:24:35 -0800 (PST)	[thread overview]
Message-ID: <5aade5f6-3ba0-40de-b9ec-b414e9ce0d1f@i29g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.7529.1203268160.18990.help-gnu-emacs@gnu.org

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.


      parent reply	other threads:[~2008-02-26 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 12:19 face-variable-width-p? David Reitter
2008-02-17 17:09 ` face-variable-width-p? Kevin Rodgers
     [not found] ` <mailman.7529.1203268160.18990.help-gnu-emacs@gnu.org>
2008-02-26 12:24   ` David Reitter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5aade5f6-3ba0-40de-b9ec-b414e9ce0d1f@i29g2000prf.googlegroups.com \
    --to=david.reitter@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.