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: Display scaling? Date: Wed, 26 Jan 2022 14:55:59 +0800 Message-ID: <877danm1ds.fsf@yahoo.com> References: <877danm1ds.fsf.ref@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="5359"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 26 08:27:54 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 1nCcif-0001EC-FL for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jan 2022 08:27:53 +0100 Original-Received: from localhost ([::1]:34154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCcid-0003kd-V4 for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jan 2022 02:27:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCcE2-0007Kk-N5 for emacs-devel@gnu.org; Wed, 26 Jan 2022 01:56:15 -0500 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:34247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCcDz-0004Tg-KG for emacs-devel@gnu.org; Wed, 26 Jan 2022 01:56:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643180169; bh=EBo7JNU3rkr4bPJQME6Pkx9nH+dcDlvnG8EqdIrI1Fs=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=OPh+bgcoua0h7scCJNTLJUYIh5sFkgu5YuFxMa5d3MmEyHyYB7IQuqMwaCa6ZgyTI3Bz8Pj0QvDhk2USRUtXfex2ZQDqrCku4SAb5nE2LAmQDJgCZjy4C+TDVmfBeTbGrthvKJjOorC1xe7ePCx0flTi6UfZT+MtjsHniV4vJD6eexPks9m8QDNn1CKaCRpNyMQDhHl0MI60GYFR1xxt4KMXEOyanpVoSYDvEWImLiuU0v10vQFgtEEmy39jwIUR5apj+/DgjdkRiKlKvtbZDC1Tj1esWlo7pPU6C44HokpjYIyv8FMpMjLA8B+023D2tR9H6ewF8zPeMi+Z6A088w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643180169; bh=LBg1vvplkJ8GRZTY6OSnCCyq6rzEkVa8u3z2nHMYGsq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=jeXJHm+M6Ohc6zdA5auzrK5u+pDYPW4Kw5feGmYubxUgTjLOfYjVXgV7i6U6Z/BuMP3gflUrerqnlHHZIsJfwagkfHCVI+I5TXjSLq+WPFoeSRhEBofzqcEyUo/HB+IlCh8MXGCsr9OsuFr+orwTrBkTpyI+++rWG4WYDon7NuC5m4vh+6gt2aB+NOOPS/ZEwfu10kBF1lxCQof2HoC7b2rs3zdeZUu5MaROFrlDD3hb8cu8pNNQ22twn/FDdrNipHET8VxYALTqE7GMEZwiiWdbzTFzGDVbwzmgO0JM5B0vxPW6xxiqEvT+x34lX45r1wxZMw4moXYIBb50aj7FWw== X-YMail-OSG: OQvf2DYVM1kbAZh7l_np7PCQ_gaK6veF6MzHwEVpwVpUBp0FPqz0GRyUvgeQZMQ 14c3mfpYxRQWNcrk2DwMoenNbdSuwELDTDPqDt2yVBdWIR0yS6WT07SV3MXfug5259JzTppQrtUz _qBtRwM0m_ZiZA7PLNyoclH8UBzOJBCBkg2nAiPYS5Y852XX_cT7rfeJRL9k6RpddlTMSBNC.F0O 6xfAAKoJFp3tioiEQSP1iOFp.hNEc9OFYvj0dr1.NFoMnQ3Toaw7PBCQbOWwxmNenSQmEbnGDMGu uMrmMcXxzGxtsTV38irVVH1S0Dw1852N4_VtwQ4TLAtvIJ3WYwqEdyFP1kdsAdDeRKM2gHiUi6S6 1D6bWOJPRJlKcbtYottlGJ67EqsBr.JBJGG8NBNd31KOuEGcZbgYAQ9N5D8k3ZYnIxPDms7MSCrv fv9XzyD5tMYg0yUZGPCYneCBqq_jZ.xxTKjBlhv83QEWDrVCrXLK6jJPbg9ZZvObX_axLV7feNzm VW8sV0Q4lPxcoc1RikjArFfvszyHeJYn6aRPZvbpmf8u9c7DqtUb3_XzVlhMWk3UOhBi.9i.QJNe XZBX1HP47YGaKG7aCckLRubHeKP_Z.WLoV8.3LX5Cc61joFdCDHqdGVoIY0B1ymP50kDTB.lvsqD _u8MK8e9aCTCCu9iUR7H1Msskh7LduaM4tSAT.xAmHo.h8FvKAijIUFDgYy1nJhm9W2ASm9E_HYs oomP9iXkJPD2nLSE6PrWiThWC63ya8NRDNYr49Vqk.p.FrIInKNYwux.U3LM8dt1Lj82we3yBOmQ MSx5kUVEz8fa5ORhJdj9BQlG0Cg_zAWVvUPTi153mG X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Wed, 26 Jan 2022 06:56:09 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 64c7c8874153994fdd02f7a444d25a4b; Wed, 26 Jan 2022 06:56:03 +0000 (UTC) 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 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:285414 Archived-At: Right now, the PGTK and NS ports apply a so-called "device scale", which means that all drawing operations have an integral scale applied when the user asks for it (for example, when he has a HiDPI monitor.) The X and (presumably) W32 ports, however, only scale text on such monitors, which means things that aren't text (such as the fringes and boxes) are often displayed too tiny to be legible. I think it would be nice to have such scaling on the other ports as well. We could probably apply the frame's display scale to the width of its boxes when a face is being realized, and apply the scale to the the fringe and its bitmaps as well. It would be opt-in behaviour, of course. WDYT?