unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Anand Tamariya <atamariya@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Font size
Date: Tue, 20 Aug 2024 16:17:59 +0300	[thread overview]
Message-ID: <868qwrwcxk.fsf@gnu.org> (raw)
In-Reply-To: <CADm7Y4nYqsQ0+5VMX_MfbCYToOMaAm5HZeyC-sMLJRf=S2+o3Q@mail.gmail.com> (message from Anand Tamariya on Tue, 20 Aug 2024 18:26:15 +0530)

> From: Anand Tamariya <atamariya@gmail.com>
> Date: Tue, 20 Aug 2024 18:26:15 +0530
> Cc: emacs-devel@gnu.org
> 
> 
>  > Why does this API keep increasing the font size? With a selection, try the test command.
> 
>  Because the factor of 10 is wrong, AFAIU.
> 
> Factor of 1 decreases the font size. 

Yes, because 1 is also wrong.

>  > Alternatively, what's the best way to query the font-size at point and re-apply using face property?
> 
>  I don't understand: if you don't want to change the height, then why
>  do you have :height in the face spec at all?
> 
>  In any case, :height could be a relative value of 1.0.
> 
>  I'm trying to increase/decrease the font size in the selected region. So I need a base value to work with.

And relative values like 1.2 or 0.8 don't fit the bill in your case?
Using relative sizes frees you from the need to compute absolute size
values.



  reply	other threads:[~2024-08-20 13:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-20  5:25 Font size Anand Tamariya
2024-08-20 12:11 ` Eli Zaretskii
2024-08-20 12:56   ` Anand Tamariya
2024-08-20 13:17     ` Eli Zaretskii [this message]
2024-08-20 13:37       ` Anand Tamariya
2024-08-20 13:52         ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2021-08-01  8:53 Merging the pgtk branch Eli Zaretskii
2021-08-04 12:53 ` Font size (was: Merging the pgtk branch) Kévin Le Gouguec
2021-08-04 13:45   ` Eli Zaretskii
2021-08-04 13:58     ` Font size Kévin Le Gouguec
2021-08-04 15:46       ` Yuri Khan
2021-08-04 16:11         ` Eli Zaretskii
2021-08-04 17:09           ` Yuri Khan
2021-08-04 18:23             ` Eli Zaretskii
2021-08-04 18:33               ` Yuri Khan
2021-08-05 14:51                 ` Robert Pluim
2021-08-05 16:19                   ` Eli Zaretskii
2021-08-04 13:55   ` Font size (was: Merging the pgtk branch) Eli Zaretskii
2021-08-04 14:15     ` Font size Kévin Le Gouguec

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=868qwrwcxk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=atamariya@gmail.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).