unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: rpluim@gmail.com, emacs-devel@gnu.org
Subject: Re: master a739cab6637 2/2: ; * doc/lispref/display.texi (Image Descriptors): Insert missing text.
Date: Fri, 07 Jun 2024 09:29:36 +0300	[thread overview]
Message-ID: <86plstfepb.fsf@gnu.org> (raw)
In-Reply-To: <s54jzj1k3rn.fsf@yahoo.com> (message from Po Lu on Fri, 07 Jun 2024 08:14:36 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: rpluim@gmail.com,  emacs-devel@gnu.org
> Date: Fri, 07 Jun 2024 08:14:36 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > And I would like to explain more about "computing the scaling factor
> > based on pixel size of the font used by the frame's default face", and
> > what happens if the default font's width is 10 pixels or below, but
> > your text doesn't really tell that story.  I think it should.  (Btw,
> > the default width of the font in "emacs -Q" on Windows is 8, so it
> > will always hit the case which was left unexplained.)
> 
> Below 10 pixels, the image is not scaled unless a numeric scale be
> provided in image-scaling-factor.  As for the reasoning behind this
> arbitrary value, you'll need to ask Lars, whose code I've merely
> reproduced in C.

So this means at least on Windows, where the default font's width is
8, the image will never be scaled in "emacs -Q", am I right?

I think on macOS the default width is 7, so the same will happen there
as well?

What is the default width of the font on GNU/Linux?

And finally, can you tell more about how the scale factor is computed
"based on the font's pixel size"?  Or point me to the code which does
that?  I think some of that should be in the manual, to give the users
some idea of what will happen.

Thanks.



  reply	other threads:[~2024-06-07  6:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171740380294.31568.538114951586755322@vcs2.savannah.gnu.org>
     [not found] ` <20240603083643.B2E29C009F4@vcs2.savannah.gnu.org>
2024-06-03 11:27   ` master a739cab6637 2/2: ; * doc/lispref/display.texi (Image Descriptors): Insert missing text Robert Pluim
2024-06-06 12:01     ` Eli Zaretskii
2024-06-06 13:18       ` Po Lu
2024-06-06 13:39         ` Eli Zaretskii
2024-06-06 13:58           ` Po Lu
2024-06-06 14:04             ` Robert Pluim
2024-06-06 15:08             ` Eli Zaretskii
2024-06-07  0:14               ` Po Lu
2024-06-07  6:29                 ` Eli Zaretskii [this message]
2024-06-07  8:50                   ` Po Lu
2024-06-08 13:20                     ` Eli Zaretskii
2024-06-08 13:28                       ` Po Lu

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=86plstfepb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=rpluim@gmail.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 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).