From: Jason Rumney <jasonr@gnu.org>
To: Chip Coldwell <coldwell@redhat.com>
Cc: emacs-devel@gnu.org
Subject: Re: font question
Date: Mon, 23 Jun 2008 22:52:24 +0100 [thread overview]
Message-ID: <48601B18.3040003@gnu.org> (raw)
In-Reply-To: <alpine.LFD.1.10.0806231722520.17879@barcelona.usersys.redhat.com>
Chip Coldwell wrote:
> I wonder if there isn't a missing XINT somewhere. Here's my default
> face:
>
> Face: default (sample) (customize this face)
> Documentation: Basic default face.
> Defined in `faces.el'.
>
> Family: DejaVu Sans Mono
> Foundry: unknown
> Width: normal
> Height: 96
[snip]
> Font: #<font-object -unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso8859-1>
>
> Note that "Height: 96" but the XLFD, contains "-12-" in the pxlsz
> field.
customize-face default shows:
[X] Height: [Value Menu] Height in 1/10 pt: 96
perhaps describe-face should also show the units here, to avoid confusion.
Note that
>
> #define XINT(a) (((EMACS_INT) (a)) >> GCTYPEBITS)
>
> and
>
> #define GCTYPEBITS 3
>
> on my platform, thus
>
> XINT(96) == 96 >> 3 == 96/8 == 12
I think this is coincidence. A 12 pixel height at 90dpi comes out to 9.6
points, is your display set to 90dpi (within fontconfig or X config, or
autodetected by X)?
prev parent reply other threads:[~2008-06-23 21:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 18:27 font question Chip Coldwell
2008-06-23 21:27 ` Chip Coldwell
2008-06-23 21:52 ` Jason Rumney [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48601B18.3040003@gnu.org \
--to=jasonr@gnu.org \
--cc=coldwell@redhat.com \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).