From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Display scaling? Date: Tue, 01 Feb 2022 09:05:39 +0800 Message-ID: <87h79jcs64.fsf@yahoo.com> References: <877danm1ds.fsf.ref@yahoo.com> <877danm1ds.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 01 02:09:36 2022 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 1nEhfs-0002uA-2i for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Feb 2022 02:09:36 +0100 Original-Received: from localhost ([::1]:41974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEhfr-00080J-3q for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Jan 2022 20:09:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEhcH-0005vQ-Ma for emacs-devel@gnu.org; Mon, 31 Jan 2022 20:05:55 -0500 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:34026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEhcD-0004Jx-O3 for emacs-devel@gnu.org; Mon, 31 Jan 2022 20:05:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643677548; bh=mzuMbf5v/qy56HkSxAiAELWWz4y2NXmCOr9Ps7Xp01c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=dz40QIVUGX16Wzb7TLJy/2OcmKnBwk3VniOULsy70GnKeHcXa6K/n/ZGoG7SS5mEB0LFzhDJMEc0SIS3fMnoSnR3BVagyRrfIX0ugw5jm1Bct1Q5RucmlzdebK/08od6FsYEpsY0Eo6lT8fUzUItS0YtNJgTESAM2tkB+NGqCm3I8rqfFIUzFT7zz1Qpv45mboQSZ83n9eg3Lgdq4IEMWNYANP5sd3Jg/kRL7n2CZju+/zGxVqkdIjPvbWHd4HuX8tCsBvEUhFRZQp0vst3wgn0hdH+vIOo7JCkx1fn3bn6TaKhpNC3LcBtJCk/T1h4RjWIDxhXJhC8YbQAWQQZ1ZA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643677548; bh=C0lsR8s9veiwxH3pgv8BU++oZTk5rZjD/7Ax5c1vhyL=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=OOquhS3NKNDxdsxQA2wrMNTCxpcOzdWHNnwYodzQqzu0SRRpHxUV+ULoK7nziUfuIjUlE8pXzt66zVEUSUH0yAI7guD8ccKX6Gf8ZyiKkUbeCBKBLgHDOaspbyGcanvvfnJkUKmfdCauQJ032ctse3KrHQxIU95rxMCuGZjK9kYLa50LQv9HMBfHRVuqgRqZDJ4hZ48Qh+QmiTJcHuw9MVn/WLIiSN0bo5Gxmv00kjlykfsGuXXJEzCV0L6SAwhzCYrfoQXCz9Bxjv91NQFjjAamlLUvrBiLczWYOTLiTopfcpt5VjEPlMNQl3kD50YmrLuPYHw9PkfwOY3vsovQyA== X-YMail-OSG: t_PFJ_sVM1nWyx6V2JJ4fYWdyEZxMCElGdfhDb8p.5YzoZPNgXqD3kwwNVeLyjd S1FLHcQWtAlfGvWt_V2sWCjHW261aFsHXydavtSKfszKiDSUQoTRwsA2LMFlEHvbnfth_DHDN80L cSiUmdb5aRUvax28iCwJregdM_fN5BQd5RavF_l1SGRAAUDFen2XwBj.bUbPUpr3tPSV3f9LCCGk t7_L1cUdKBSI5aQNkb9b5T0TejSsJ.9eHthfXaZF279ikf7ZAL7kqjlNaP9UykEUNp.tZOCgJF99 8DCtNr3.pmQGhUEi7Zx.j2zNoZiPEunjQPQ.AOipXv7DgjXC4djsJ1VWLNR9OWNAwVt3Dk6A3LYD EUvGMvzW5qSqGbrAN2Lum_rKilDg9o3zbKDMUJXymH2x2WQBVKmzFm7swG.s3037CVrs2DxvxCik g1cF7SRY_fIf8AUUV8wRHykMoEnXMLrFDdsoIUSYYlQN8VwUiz.ADzzttaZ2FlvAw_tTPJ47ITgh 3sjw2g9c4KDo8KljDMu87dRZM04nipZcHj4B8uW7NxP5wYp89TVvsnBSp458IkF_oI6V3izt5SIj BqD0nfCLz7kk8vp80PtUm7Z9ubgkSKAvegzhckfs0P1o1jygQonW1VrLEhSNZpbzwa5VnKvtjJ7Z pPohU4JA3j6FmwLKRmaSb.oT3801ITwMmZGCOxTC9lSHpTeXD6T8eUxddtKD8fVeqR_hi.IkGLZJ tfPLWtlXxP18_lxmIfoA4muBIRcb65iO8xzA4ZZzq6bh5b7weU5dyUe72FrvO2WKaK7vmEtOyqoA hRZzBte4.ORk10pCVs8nF8t7K7Dx0vXbxBvkhMalVp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 1 Feb 2022 01:05:48 +0000 Original-Received: by kubenode514.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b412b01ac9effaa16261eaf63e666c01; Tue, 01 Feb 2022 01:05:44 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Mon, 31 Jan 2022 17:13:38 +0200") X-Mailer: WebService/1.1.19615 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.199; envelope-from=luangruo@yahoo.com; helo=sonic301-30.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:285707 Archived-At: Dmitry Gutov writes: > I rather think it makes sense to make it opt-out: we should strive for > consistent looks of fringes between ports, HiDPI included. I tend to agree. > Or to make it opt-in for all ports (NS and PGTK included), and then > decide on the default based on the collective user feedback. That interferes with GTK and NS's own device scaling, which this feature is trying to replicate. > Regarding fringes, I was going to suggest providing different scaled > versions of bitmaps (which was already mentioned in this thread) -- > having even two versions, 1x and 2x, should cover a lot of users -- > but it seems like a half-measure that requires extra work from the > bitmap authors. > > Before going to vector formats, could we try tweaking the scaling > algorithm first? E.g. when the scaling is 2x (which seems popular > enough), the bitmap could be "zoomed up" without any fuzziness. There wouldn't be any fuzziness on HiDPI displays, since it would look identical to such a bitmap on a normal display. > It could also be made customizable. Indeed. > Or if we were trying to pick an algorithm which can be found in some > library, perhaps choose from one of these? > https://en.wikipedia.org/wiki/Pixel-art_scaling_algorithms > > Starting with "nearest neighbor". I'm curious how it would look on the > built-in bitmaps. I'll give that a try some time.