From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 1785@emacsbugs.donarmstrong.com
Subject: bug#1785: bug#1547: face-font-rescale-alist has no effect
Date: Sat, 18 Apr 2009 14:14:52 -0400 [thread overview]
Message-ID: <jwvk55hkey0.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <87bpquiot3.fsf@cyd.mit.edu> (Chong Yidong's message of "Sat, 18 Apr 2009 00:11:20 -0400")
>> > What I currently don't understand is that the font rescaling doesn't
>> > work for the default font in the above case even after
>> > (clear-face-cache t). I'm now investigating the reason.
>>
>> I think the problem here is that the opened font objects are already
>> stored in the LFACE_FONT entry of the default face. Note that
>>
>> M-: (set-face-attribute 'default nil :font (font-spec)) RET
>>
>> successfully refreshes the face with the correct rescaling.
> Until a better solution comes along, I propose dealing with this
> situation with the following hack in startup.el: check to see if the
> init file changed face-font-rescale-alist, and reload the default face
> if necessary.
Can't we fix it right and make clear-face-cache refresh the default face
as well? If the right fix is really too much trouble, then I guess your
workaround is OK, but then it needs to come with a heavy dose of
comments explaining why it's there and how to get rid of it.
Stefan
next prev parent reply other threads:[~2009-04-18 18:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-18 4:11 bug#1785: bug#1547: face-font-rescale-alist has no effect Chong Yidong
2009-04-18 18:14 ` Stefan Monnier [this message]
2009-04-22 14:04 ` Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2009-04-25 14:26 Chong Yidong
2009-04-17 4:23 Chong Yidong
2008-12-12 10:53 Juanma Barranquero
2008-12-13 3:30 ` Kenichi Handa
2019-10-31 17:58 ` bug#1785: " Lars Ingebrigtsen
2016-01-07 4:14 ` Andrew Hyatt
2016-07-09 19:40 ` npostavs
2016-07-14 4:04 ` Andrew Hyatt
2016-07-14 15:08 ` Eli Zaretskii
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=jwvk55hkey0.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=1785@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
/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.