unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Anand Tamariya <atamariya@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: Font size
Date: Tue, 20 Aug 2024 10:55:45 +0530	[thread overview]
Message-ID: <CADm7Y4m55dGvQo5LBGktqxSt84SRxut93JwyJx3WFdHHb7cUsg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

Why does this API keep increasing the font size? With a selection, try the
test command.

Alternatively, what's the best way to query the font-size at point and
re-apply using face property?


font-info
[ OPENED-NAME FULL-NAME SIZE *HEIGHT* BASELINE-OFFSET RELATIVE-COMPOSE
    DEFAULT-ASCENT MAX-WIDTH ASCENT DESCENT SPACE-WIDTH AVERAGE-WIDTH
    FILENAME CAPABILITY ]

(defun test(start end)
  (interactive "r")
  (let* ((size (* 10 (aref (font-info (font-at start)) 3))))
    (put-text-property start end 'face
      (list :inherit 'unspecified :height size))))

[-- Attachment #2: Type: text/html, Size: 776 bytes --]

             reply	other threads:[~2024-08-20  5:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-20  5:25 Anand Tamariya [this message]
2024-08-20 12:11 ` Font size Eli Zaretskii
2024-08-20 12:56   ` Anand Tamariya
2024-08-20 13:17     ` Eli Zaretskii
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=CADm7Y4m55dGvQo5LBGktqxSt84SRxut93JwyJx3WFdHHb7cUsg@mail.gmail.com \
    --to=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).