From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Latex preview overlay scaling not consistent across PPI Date: Wed, 30 Nov 2016 22:05:16 +0100 Message-ID: <87eg1sel0z.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCC44-000165-Pa for emacs-orgmode@gnu.org; Wed, 30 Nov 2016 16:05:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCC43-0003yr-QS for emacs-orgmode@gnu.org; Wed, 30 Nov 2016 16:05:16 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58289) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCC43-0003yd-K8 for emacs-orgmode@gnu.org; Wed, 30 Nov 2016 16:05:15 -0500 In-Reply-To: (Scott Otterson's message of "Wed, 30 Nov 2016 17:35:33 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Scott Otterson Cc: "Emacs-orgmode@gnu.org" Hello, Scott Otterson writes: > The size of the latex preview overlay scaling is inconsistent across > screens with different pixel densities. > > I've set my customization to use dvipng for the latex previews I see when I > type C-c C-x C-l. Dvipng is customized as follows: > > [image: Inline image 1] > > The "Value" is set to (1.0 . 1.0), which I would think means that the font > size in the preview overlay is scaled the same as the font size org > buffer's normal text. > > This is more or less true for a Windows 7 machine connected to a 24", > 1920x1080 pixel monitor: > > [image: Inline image 2] > > However, on a Windows 10 machine with a 12.3", 2736x1824 pixel monitor, the > same customization looks like this: > > [image: Inline image 3] > > On the second computer (a Surface Pro 4) the previews are tiny because the > screen has a much higher pixel density; the normal text is scaled > appropriately but the overlays aren't scaled to match. I made a change to how dpi is computed in `org-create-formula-image'. Could you test it and report if it fixes your issue ? Regards, -- Nicolas Goaziou