From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: "Fix" sag scaling for hidpi Date: Sat, 13 Feb 2021 13:09:27 +0000 Message-ID: References: <9C04F72C-1BB6-4308-AD8E-4A2B471CAC4E@gmail.com> <871rdkte4f.fsf@gnus.org> <87h7mgqj60.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34941"; mail-complaints-to="usenet@ciao.gmane.io" To: Lars Ingebrigtsen , Yuan Fu , Robert Pluim , Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 13 14:14:45 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAul3-00090K-Aw for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 14:14:45 +0100 Original-Received: from localhost ([::1]:42294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAul2-0001yu-B0 for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 08:14:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAug6-0006l7-0L for emacs-devel@gnu.org; Sat, 13 Feb 2021 08:09:40 -0500 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:55819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAug3-0008Be-9f; Sat, 13 Feb 2021 08:09:37 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4BAD7600D0; Sat, 13 Feb 2021 13:09:31 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1613221770; bh=Wdy490PCaHAdbPevZEGj+M8l7nbswtAmGawp5iFeAbg=; h=Date:From:To:Subject:References:In-Reply-To:From; b=moJDNi/JEaRftIaffXetplrLzRpuSEFuM6eeiOsb5VGg0/nd6HJF+fUr8tclJF2kD QH3LGFQKr7OgIX5q3RYBaCXusN3sFgVqemydkae9KYwkR5LGIXV5oykGhySghBg3DN yj9jTiuyhHKMzDIJSLAe7IdMWvxTybVWHslw1QZjwGWMk84+iAenathYKmRiB2umco 33vCd6C4W8XI1nuTvy0ohme2nOkHE3QKBXlM4IMyR77kjsz/I+/NKO+gNVZSsNzaZe q1/D3oJ5F4Df+7/YWQUpQCvRj2cDwiOxebSjlOS0d/967yVmOiAw/I4FlNKYMN/Kut QoqDUmqn8XbZQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 6069B202A6672B; Sat, 13 Feb 2021 13:09:27 +0000 (GMT) Mail-Followup-To: Alan Third , Lars Ingebrigtsen , Yuan Fu , Robert Pluim , Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264615 Archived-At: On Sat, Feb 13, 2021 at 12:54:50PM +0000, Alan Third wrote: > In case it's not clear what's going on, I've attached a screenshot of > Emacs on macOS with my patch installed (left), and on PGTK with > GDK_SCALE=2 and without my patch (right). Both displaying the same SVG > file. Sorry Lars, I'm losing track of this conversation. You asked about whether it only affects SVGs. The patch fixes the issue with SVG files being rendered at the logical DPI. But I've added code to shrink raster images as on macOS (and PGTK) they are also displayed at the logical size. This is probably less of a problem than with SVGs as often you can't really tell, but I'm of the opinion that if I open an image in an image viewer (I'm considering image-mode as an image viewer) I'd expect it to be the physical size. Perhaps this is wrong and most people expect the logical size. -- Alan Third