Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #200798

Re: SVG in SVG.

From Reco <recoverym4n@gmail.com>
Newsgroups linux.debian.user
Subject Re: SVG in SVG.
Date 2018-10-01 19:00 +0200
Message-ID <wE9I5-17b-9@gated-at.bofh.it> (permalink)
References <wE025-3P2-1@gated-at.bofh.it> <wE0bM-3Sr-1@gated-at.bofh.it> <wE9oJ-106-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 01, 2018 at 08:54:43AM -0700, peter@easthope.ca wrote:
> Reco,
> 
> Thanks for the reply.
> 
>     From: Reco <recoverym4n@gmail.com>
>     Date: Mon, 1 Oct 2018 09:48:21 +0300
> > 8.5/11 = .7727272...
> > 765/990 = .7727272...
> 
> OK
> 
> > So rsvg-convert seem to preserve aspect ratio.
> 
> OK.
> 
> > 8.5*90 = 765
> > 11*90 = 990
> 
> OK.
> 
> > You define actual size by specifying (or using default) DPI.
> 
> OK.
> 
> Also FWIIW (270 mm/25.4 mm/in) x 90 px/in ~= 956.69 px (?)
> and (349 mm/25.4 mm/in) x 90 px/in ~= 1236.61 px (?)

Here's your mistake. rsvg-convert assumes 90 DPI by default, and it can
be changed by the user if needed.

In the case of Evince ("Document Viewer" in GNOME-speak), 72 DPI is
assumed and hardcoded (see shell/ev-window.c and libview/ev-view.c for
some examples) without any possibility of user changes.
Note that libpoppler - the library that evince uses to render PDF - does
not make such assumptions, it's all pixels for them.

Therefore, 765 pixels equals 269.88 GNOME millimeters and 10.63 GNOME
inches.
Likewise, 990 pixels equals 349.25 GNOME millimeters and exactly 13.75
GNOME inches.

Note that all those mm and inches are not the units of measurement we
common people are accustomed for. They are special GNOME units of
measurement, hence your confusion.


> Sorry for being dense.

I see nothing to be sorry for. They say that mathematics is the
universal language for a reason :)

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Paper size reported in Document Viewer. peter@easthope.ca - 2018-10-01 08:40 +0200
  Re: Paper size reported in Document Viewer. Reco <recoverym4n@gmail.com> - 2018-10-01 08:50 +0200
    Re: SVG in SVG. peter@easthope.ca - 2018-10-01 18:40 +0200
      Re: SVG in SVG. Reco <recoverym4n@gmail.com> - 2018-10-01 19:00 +0200

csiph-web