unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* SVG displayed image size
@ 2021-03-12 17:28 Matt Huszagh
  2021-03-13  7:15 ` Eli Zaretskii
  2021-03-13  8:07 ` Jean Louis
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Huszagh @ 2021-03-12 17:28 UTC (permalink / raw)
  Cc: help-gnu-emacs

Hello,

SVG images are displayed smaller than I would expect in Emacs. How is
this controlled? I spent a while looking through image display functions
in elisp, but was not able to figure out how Emacs determines the actual
size of the image display in, e.g., image-mode. I've compiled Emacs with
SVG support, of course.

For instance, I have an SVG image with the width attribute specified as
about 20mm, but it displays as well below 2cm on my screen. I have an
HiDPI display and I expect these things are related.

Thanks for any pointers!
Matt



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SVG displayed image size
  2021-03-12 17:28 SVG displayed image size Matt Huszagh
@ 2021-03-13  7:15 ` Eli Zaretskii
  2021-03-13  8:07 ` Jean Louis
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-03-13  7:15 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Matt Huszagh <huszaghmatt@gmail.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Fri, 12 Mar 2021 09:28:22 -0800
> 
> SVG images are displayed smaller than I would expect in Emacs. How is
> this controlled? I spent a while looking through image display functions
> in elisp, but was not able to figure out how Emacs determines the actual
> size of the image display in, e.g., image-mode. I've compiled Emacs with
> SVG support, of course.
> 
> For instance, I have an SVG image with the width attribute specified as
> about 20mm, but it displays as well below 2cm on my screen. I have an
> HiDPI display and I expect these things are related.

If this is a HiDPI display, I guess the next question will be "what
Emacs version is that?"



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SVG displayed image size
  2021-03-12 17:28 SVG displayed image size Matt Huszagh
  2021-03-13  7:15 ` Eli Zaretskii
@ 2021-03-13  8:07 ` Jean Louis
  2021-03-14 21:02   ` Matt Huszagh
  1 sibling, 1 reply; 4+ messages in thread
From: Jean Louis @ 2021-03-13  8:07 UTC (permalink / raw)
  To: Matt Huszagh; +Cc: help-gnu-emacs

* Matt Huszagh <huszaghmatt@gmail.com> [2021-03-13 00:16]:
> Hello,
> 
> SVG images are displayed smaller than I would expect in Emacs. How is
> this controlled? I spent a while looking through image display functions
> in elisp, but was not able to figure out how Emacs determines the actual
> size of the image display in, e.g., image-mode. I've compiled Emacs with
> SVG support, of course.
> 
> For instance, I have an SVG image with the width attribute specified as
> about 20mm, but it displays as well below 2cm on my screen. I have an
> HiDPI display and I expect these things are related.

As side notes, what I remember is that X display has its DPI settings,
so the scaling and ratio of display could depend of settings outside
of Emacs.

Please see here various references that could help in tweaking it:
https://wiki.archlinux.org/index.php/HiDPI

Jean



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SVG displayed image size
  2021-03-13  8:07 ` Jean Louis
@ 2021-03-14 21:02   ` Matt Huszagh
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Huszagh @ 2021-03-14 21:02 UTC (permalink / raw)
  To: Jean Louis; +Cc: help-gnu-emacs

Jean Louis <bugs@gnu.support> writes:

> As side notes, what I remember is that X display has its DPI settings,
> so the scaling and ratio of display could depend of settings outside
> of Emacs.
>
> Please see here various references that could help in tweaking it:
> https://wiki.archlinux.org/index.php/HiDPI

Thanks for pointing that out. That changed the size of various parts of
Emacs, but interestingly not the size of the displayed SVGs.

Matt



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-14 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-12 17:28 SVG displayed image size Matt Huszagh
2021-03-13  7:15 ` Eli Zaretskii
2021-03-13  8:07 ` Jean Louis
2021-03-14 21:02   ` Matt Huszagh

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).