all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Default font has size 12pixels when requested 13pixels
Date: Fri, 15 Feb 2008 21:40:38 +0000	[thread overview]
Message-ID: <47B606D6.7090005@gnu.org> (raw)
In-Reply-To: <jwvy79mkl7m.fsf-monnier+emacs@gnu.org>

Stefan Monnier wrote:
> My default font is specified via X resources:
>
> Emacs.font:     -misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-*-*
>
> yet with the new font-backend, I get the 12-pixel version of that font
> (which happens to be a *lot* smaller).
>
> I'm trying to track down what's going on, but am having some trouble.
> I see the point-size of my faces going from 99 (corresponding to the
> desired 13 pixels) to 91 (corresponding to 12 pixels) at some point, but
> still can't quite figure out where that happens.
>   
This sounds similar to the problem I was having a couple of weeks back, 
which I tracked to some changes to font.c installed on the 
emacs-unicode-2 branch between 2008-01-22 and 2008-01-25 to fix the 
problems being discussed with the subject "Unicode-2 crash by 
set-face-font". One of the fixes was to stop using a previously created 
font->font_object, and instead recreate the font using font->full_name. 
On Windows, the full names were not parsable by the font creation code, 
so the size was being lost in that recreation. 12 pixels is hard-coded 
somewhere in font.c as a fallback size.

Although in your case, it looks like the full_name is being filled in a 
format that Emacs can parse, I suspect it may still be the same code 
that is causing the problem.







  reply	other threads:[~2008-02-15 21:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-15 20:48 Default font has size 12pixels when requested 13pixels Stefan Monnier
2008-02-15 21:40 ` Jason Rumney [this message]
2008-02-16  0:42   ` Glenn Morris
2008-02-18 18:30 ` Stefan Monnier
2008-02-19  8:04   ` Kenichi Handa
2008-02-19  9:19     ` Jason Rumney
2008-02-19 12:48       ` Kenichi Handa
2008-02-19 20:00     ` Glenn Morris
2008-02-19 22:51       ` Jason Rumney
2008-02-19 22:53         ` Glenn Morris

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=47B606D6.7090005@gnu.org \
    --to=jasonr@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.