GNU bug report logs - #59122
29.0.50; global-text-scale-adjust not working on macOS

Previous Next

Package: emacs;

Reported by: Rudolf Adamkovič <salutis <at> me.com>

Date: Tue, 8 Nov 2022 12:30:02 UTC

Severity: normal

Found in version 29.0.50

Done: Gregory Heytings <gregory <at> heytings.org>

Bug is archived. No further changes may be made.

Full log


Message #68 received at 59122 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: salutis <at> me.com, 59122 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#59122: 29.0.50; global-text-scale-adjust not working
Date: Wed, 09 Nov 2022 16:01:04 +0000
>
> Can you tell more?  I don't think I understand why decreasing the face 
> height by 5 doesn't work, but decreasing it by 6 does.  If you do 
> understand, please tell.
>

It's because of rounding.  Face heights on macOS are multiples of 10 (100 
for 10.0 pt, 110 for 11.0 pt, ...).  Setting the face height to 105 
actually sets it to 110.

So I think what we should do here is to check, after set-face-attribute, 
whether the face height has actually changed, and if not try again with a 
bigger increment.




This bug report was last modified 2 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.