GNU bug report logs - #45124
Subject: 27.1; Image rendered from svg is too small on a hdpi display

Previous Next

Package: emacs;

Reported by: Dov Grobgeld <dov.grobgeld <at> gmail.com>

Date: Tue, 8 Dec 2020 18:30:02 UTC

Severity: normal

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Dov Grobgeld <dov.grobgeld <at> gmail.com>
Cc: 45124 <at> debbugs.gnu.org
Subject: bug#45124: Subject: 27.1; Image rendered from svg is too small on a hdpi display
Date: Wed, 9 Dec 2020 00:08:20 +0000
[Message part 1 (text/plain, inline)]
On Tue, Dec 08, 2020 at 08:28:43PM +0200, Dov Grobgeld wrote:
> When loading an svg file into emacs by find file, e.g. the attached file
> inkscape-drawing.svg, it is not rendered by the active x11 resolution. The
> svg file has a native size of about 173.mm, but when loaded into emacs, its
> width becomes about 95mm. My monitor is a 4k 27" screen which has a dpi of
> about 163. It thus appears that the svg file is rendered at 90 dpi, since
> 90/167*173 ≈ 95.
> 
> Note that xdpinfo properly returns:
> 
>   resolution:    162x161 dots per inch

Something like the attached (patch against the master branch) might do
the trick...

This makes everything smaller on macOS, which isn't great because on
my laptop everything is already too small. I'm not sure what we'd have
to do to get SVGs rendering at roughly the right size.
-- 
Alan Third
[0001-Use-real-DPI-when-rendering-SVGs-bug-45124.patch (text/plain, attachment)]

This bug report was last modified 4 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.