unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Nicolas P. Rougier (inria)" <nicolas.rougier@inria.fr>
To: Alan Third <alan@idiocy.org>
Cc: emacs-devel@gnu.org
Subject: Re: ELPA: New package: svg-lib
Date: Mon, 27 Sep 2021 22:43:01 +0200	[thread overview]
Message-ID: <m1czot3fwp.fsf@inria.fr> (raw)
In-Reply-To: <YVInXi8Q/Aaf4XV6@idiocy.org>


Alan Third <alan@idiocy.org> writes:

> FWIW, I believe that librsvg defaults to 96dpi, however I'm not 
> sure
> that it always did, I've a feeling it used to use something 
> different,
> so different versions of librsvg may use different default 
> DPIs. Only
> Emacs 28 explicitly sets a DPI, so Emacs 27 will use whatever is
> default for librsvg.

If librsvg changed its default DPI, that would explain why some 
users get a wrong result depending on their lib version.

> I ended up using pixels for font sizes rather than trying to get 
> point
> sizes to match up. When I DID try to use point sizes, on macOS I 
> had
> to multiply every size by something like 72/96. That calculation 
> would
> vary with OS and GUI toolkit, and possibly monitor size too.

I went down this road too and remember having tested the 72/96 
ratio without much success.
More specifically, I try to compute the actual screen dpi and 
adapt the font size but it did not work so well.

Nicolas



  reply	other threads:[~2021-09-27 20:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 13:49 ELPA: New package: svg-lib Nicolas P. Rougier (inria)
2021-09-27 14:34 ` Stefan Kangas
2021-09-27 14:34 ` Stefan Kangas
2021-09-27 17:38 ` Alan Third
2021-09-27 18:03   ` Nicolas P. Rougier (inria)
2021-09-27 20:19     ` Alan Third
2021-09-27 20:43       ` Nicolas P. Rougier (inria) [this message]
2021-09-27 20:03 ` Stefan Monnier
2021-09-27 20:47   ` Nicolas P. Rougier (inria)
2021-09-27 20:59     ` Stefan Kangas
2021-09-28  5:32       ` Nicolas P. Rougier (inria)
2021-09-27 21:02     ` Stefan Monnier
2021-09-28  5:34       ` Nicolas P. Rougier (inria)
2021-09-28  4:29     ` Adam Porter

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=m1czot3fwp.fsf@inria.fr \
    --to=nicolas.rougier@inria.fr \
    --cc=alan@idiocy.org \
    --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).