From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85625 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Scaling stuff for high dpi screens Date: Wed, 28 Jan 2015 09:46:56 +0100 Message-ID: <878ugncmwv.fsf@fencepost.gnu.org> References: <87vbu5m25o.fsf@topper.koldfront.dk> <871twqefd6.fsf@topper.koldfront.dk> <87lhulyz7g.fsf@topper.koldfront.dk> <8761brwhiz.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422434937 15421 80.91.229.3 (28 Jan 2015 08:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 08:48:57 +0000 (UTC) Cc: Adam =?iso-8859-1?Q?Sj=F8gren?= , ding@gnus.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 09:48:56 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGOIv-0001Cg-WA for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 09:48:54 +0100 Original-Received: from localhost ([::1]:51981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGOIv-0005G6-Gn for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 03:48:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGOH9-0002BM-OL for emacs-devel@gnu.org; Wed, 28 Jan 2015 03:47:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGOH4-0003Xg-Tz for emacs-devel@gnu.org; Wed, 28 Jan 2015 03:47:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGOH4-0003Xc-Rz for emacs-devel@gnu.org; Wed, 28 Jan 2015 03:46:58 -0500 Original-Received: from localhost ([127.0.0.1]:55109 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGOH3-0004xz-7c; Wed, 28 Jan 2015 03:46:57 -0500 Original-Received: by lola (Postfix, from userid 1000) id C4E11E07AB; Wed, 28 Jan 2015 09:46:56 +0100 (CET) In-Reply-To: <8761brwhiz.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Wed, 28 Jan 2015 17:23:00 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181888 gmane.emacs.gnus.general:85625 Archived-At: Lars Ingebrigtsen writes: > asjo@koldfront.dk (Adam Sj=F8gren) writes: > >> (defun get-x11-dpi () >> (let ((xrandr >> (with-output-to-string >> (call-process "xrandr" nil standard-output)))) > > Hm. Doesn't Emacs have a way of determining the DPI of the screen? If > not, it should have. Sure. (/ (display-pixel-width) (/ (display-mm-width) 25.4)) --=20 David Kastrup