|
From: | Jason Rumney |
Subject: | Re: Default font has size 12pixels when requested 13pixels |
Date: | Fri, 15 Feb 2008 21:40:38 +0000 |
User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
Stefan Monnier wrote:
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.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.
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.
[Prev in Thread] | Current Thread | [Next in Thread] |