From: <tomas@tuxteam.de>
To: emacs-devel@gnu.org
Subject: Re: What is `image-compute-scaling-factor' for?
Date: Thu, 24 Dec 2020 12:07:02 +0100 [thread overview]
Message-ID: <20201224110702.GE23892@tuxteam.de> (raw)
In-Reply-To: <CAO=W_ZpH29A0iqU1UKBdft6jvmOnHp73iEv4nP3oThBmj0mQuA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1708 bytes --]
On Thu, Dec 24, 2020 at 01:52:21PM +0300, Evgeny Zajcev wrote:
> чт, 24 дек. 2020 г. в 13:37, Eli Zaretskii <eliz@gnu.org>:
>
> > On December 24, 2020 11:30:57 AM GMT+02:00, Evgeny Zajcev <
> > lg.zevlg@gmail.com> wrote:
> > > What is this `image-compute-scaling-factor' function for?
> > >
> > > It operates with some insane "typical character" definition. In old
> > > times
> > > this "typical character" thing might had some common sense, but
> > > nowadays
> > > with huge monitors and dense DPI, this "typical character" thing is
> > > insane
> > >
> > > What should `auto' image-scaling-factor *really* do?
> > >
> > > Thanks
> >
> > Doesn't the doc string of create-image (which does the scaling) answer
> > your question?
> >
>
> Sorry, I don't understand it, why 10 pixels? In my case `auto' creates very
> large images (i.e. (frame-char-width) ==> 30), so scaling factor is 3.
> This creates very large images by default.
>
> I know I can set `image-scaling-factor` to whatever I need. However I want
> to understand the default behaviour decision, why 10 pixels is considered
> as "typical character" width?
>
> I think, by default `create-image' should create images that look good when
> inserted into buffer, that is *not* what I get by default.
The way I read it (but I concur it's somewhat unclear to me, too) is
that the images are scaled proportionally to the (average) default
font size -- unless that is "too small", i.e. <= 10 pixels. In that
case I think (but am not sure) the images are shown as-is (i.e.
scaled by 1).
I too feel a bit confused by this explanation, but I still can't
quite put my finger on why.
Cheers
- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2020-12-24 11:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-24 9:30 What is `image-compute-scaling-factor' for? Evgeny Zajcev
2020-12-24 10:36 ` Eli Zaretskii
2020-12-24 10:52 ` Evgeny Zajcev
2020-12-24 11:07 ` tomas [this message]
2020-12-24 14:46 ` Eli Zaretskii
2020-12-24 17:12 ` Evgeny Zajcev
2020-12-25 5:17 ` Lars Ingebrigtsen
2020-12-25 6:10 ` Evgeny Zajcev
2020-12-25 6:15 ` Lars Ingebrigtsen
2020-12-25 6:36 ` Evgeny Zajcev
2020-12-25 17:12 ` Stefan Monnier
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=20201224110702.GE23892@tuxteam.de \
--to=tomas@tuxteam.de \
--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).