all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get the actual face attribute?
Date: Mon, 22 Jun 2020 15:49:57 -0400	[thread overview]
Message-ID: <jwvpn9qanoj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: AB337097-C7C9-4B41-9619-4E23E8B0C647@gmail.com

>>> Some one reported that when they change the text size with
>>> text-scale-adjust, the alignment are messed up.
>> If the alignment is done before changing the text-scale, then it's no
>> big surprise, since text-scale won't scale everything by the same factor.
> I see. I calculate the text size base on the assumption that the text scale
> is the same for all glyphs. That explains why my measuring are off.

I don't know what that means.  The text-scale does apply globally.
But it doesn't necessarily scale by the same factor horizontally and
vertically, nor does it necessarily scale by the same factor for
different fonts.  It's "more or less equal" but not exactly.  And of
course, it won't affect those glyphs whose size is not relative to the
base `default` face (e.g. images or glyphs to which a face is applied
which sets an absolute rather than relative size).

IOW it needs to be recomputed from scratch when the text-scale is changed.


        Stefan




  reply	other threads:[~2020-06-22 19:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-21  4:01 How to get the actual face attribute? Yuan Fu
2020-06-21 14:52 ` Eli Zaretskii
2020-06-21 14:55   ` Yuan Fu
2020-06-21 15:03     ` Eli Zaretskii
2020-06-21 15:54 ` Stefan Monnier
2020-06-22 17:00   ` Yuan Fu
2020-06-22 17:15     ` Perry Smith
2020-06-22 17:21       ` Yuan Fu
2020-06-22 18:47         ` Eli Zaretskii
2020-06-22 19:07           ` Yuan Fu
2020-06-22 18:56         ` Stefan Monnier
2020-06-22 19:10           ` Yuan Fu
2020-06-22 19:49             ` Stefan Monnier [this message]
2020-06-22 19:54               ` Yuan Fu
2020-06-22 21:05                 ` Stefan Monnier
2020-06-22 21:14                   ` Emacs hackers all around the world (was: Re: How to get the actual face attribute?) Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-24  4:13                   ` How to get the actual face attribute? Yuan Fu
2020-06-22 21:27         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-24  4:12           ` Yuan Fu

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=jwvpn9qanoj.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.