emacs-devel
[Top][All Lists]
Advanced

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

Re: font question


From: Jason Rumney
Subject: Re: font question
Date: Mon, 23 Jun 2008 22:52:24 +0100
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

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)?




reply via email to

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