From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.help Subject: Re: How to set font for frame on hiDPI screen? Date: Wed, 15 Jan 2020 00:56:42 +0800 Message-ID: References: <3a895599-ef58-4760-a478-78f968c8ba67@Spark> <83muaq5alt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92438"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org, Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 14 17:57:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1irPVJ-000Ndu-Ld for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 17:57:21 +0100 Original-Received: from localhost ([::1]:43406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irPVI-0002hX-IP for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 11:57:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35035) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irPUw-0002cX-4w for help-gnu-emacs@gnu.org; Tue, 14 Jan 2020 11:56:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irPUu-0005dn-3t for help-gnu-emacs@gnu.org; Tue, 14 Jan 2020 11:56:57 -0500 Original-Received: from mail-oln040092253045.outbound.protection.outlook.com ([40.92.253.45]:25600 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irPUt-0005aO-HB; Tue, 14 Jan 2020 11:56:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKckR6Lxtyw8kpgVVlgHEze8zCgS7pSqBNt7IUuEAJn5VRIMjtyhVsMmmLqbjMo8OUGfHG0v3myB8r+e6YtPSvkTOlOsmLr3FH34kmpUbklnaoFne3WPouoeg0QCiRhU08kBT1bx6ALEDVShd+0DhywydyMXmIEgLYHiRQbZJfAjPOoiHqORMHJawptdibMZA2VCFIX3IsQK+cCY3g79/1i22itS56iZYEJd9skvrpJ6ZqwCP6ZYQUCW3OoexRVuhpBM0MPMg5DluRjoOuzswfoXCJHN8F12CiWfbXvtxe/sUk7i8See+d43wV+sq6doL7ckIKf88KyBI+81E4lSyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hf0GQrszWigTPXT40NuLUdHlel4nY8/S+XUSaWLe2dM=; b=cFe8WMAXKCpFKwPMRk5hskP2vE8+3RMfcXSye2A44x0K+dfPsLxYaOtU+3incivmSWssoTwyqQwfvazSW6q663xqnjgvt3mHdZSMQn6AfZ29AGNzGCm7B703Q3ZH41eRX+fqCndv22e1Ncom/ZARLZn+nbRkvUMiz1NyG5E8Em0nY8+XvHLBy2HbJ0kEIBHzvKXzi+vbKmrUqXMHAkP7kC1z6b9VMngVKoXWD362so78aZ8NjzBs+E44lCF2Jin2ONUBs7MtSOYFFhpAstz+R9Gb4eHqoc9xOxyqV3JCETk4EYLLPkWi9oGjcHlt2K/98pYjaXpIYjyQw2mTiIg6Xg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hf0GQrszWigTPXT40NuLUdHlel4nY8/S+XUSaWLe2dM=; b=FVS5Dh9OwU0ymLCYDUOxMHxQyXxejn5rISbFdvavSbW7HfsC+LxVlvJyOmBQx+jysXhIxWqPrsPP+btNv9tY18O39YeXi2+yYc8nOcoT67/jGgU0gVIH9kwngYpHmMJWVqWYh6hpJ+WfQz04Vaf8U6ci5cYInl6/iGGMtRhp6Mmd3NWhgpG6wCW/B/0g5yaZsrW6+EFXdihqp6aVx5QN3JmmglCkLO4rjNx5R0ZxP6bT+YrikLyy1rkR+IOx/m7Aw7rwTUVI9bxjL/kb2cg0npgo6+jYaBAXqgG02X6AjsZl3GfGtjSQx0EXynFq9grAWgYI7n1XGL6hyhhGG/Te6A== Original-Received: from SG2APC01FT114.eop-APC01.prod.protection.outlook.com (10.152.250.55) by SG2APC01HT173.eop-APC01.prod.protection.outlook.com (10.152.251.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Tue, 14 Jan 2020 16:56:51 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.53) by SG2APC01FT114.mail.protection.outlook.com (10.152.250.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Tue, 14 Jan 2020 16:56:51 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:D0AE6301BAEF4F8E5A40454D546B2DBB82B54E371005BC7330D688464BE01E81; UpperCasedChecksum:9AA3F9B3F14D13E903448E3D427890380587597285D060BE4CAF571A8E16378F; SizeAsReceived:8770; Count:47 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2644.015; Tue, 14 Jan 2020 16:56:51 +0000 In-Reply-To: <83muaq5alt.fsf@gnu.org> X-Readdle-Message-ID: 00d081cb-624c-48e6-a163-09557042b476@Spark X-ClientProxiedBy: HK2PR04CA0082.apcprd04.prod.outlook.com (2603:1096:202:15::26) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <00d081cb-624c-48e6-a163-09557042b476@Spark> Original-Received: from [192.168.1.103] (1.196.185.24) by HK2PR04CA0082.apcprd04.prod.outlook.com (2603:1096:202:15::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18 via Frontend Transport; Tue, 14 Jan 2020 16:56:50 +0000 X-Readdle-Message-ID: 00d081cb-624c-48e6-a163-09557042b476@Spark X-Microsoft-Original-Message-ID: <00d081cb-624c-48e6-a163-09557042b476@Spark> X-TMN: [EtJJVwS3t/oPf2cqhm6Hfn2mMQE7uuS0] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 14cbbd98-3040-4987-4341-08d79912c041 X-MS-TrafficTypeDiagnostic: SG2APC01HT173: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +4udI23T3J4YMKg0JhFWr0qLxmtmpiyP4ugTNJ+G2bxpQ7mb0kd+yHU/Y3REHIpzNz0rHLDrGmYLsoZ5KHYBGDriVWxS0VpYQnxLFLrYMU6FNmNXI+aFsXquVNRDGwR4tyBqTv3GeTlzOkIkA9xbiqCY+tLEEpdUjJp/Et3tL1IWgBT6YMdQQgRmgm6WVz59 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14cbbd98-3040-4987-4341-08d79912c041 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2020 16:56:51.3436 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT173 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.253.45 Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122222 Archived-At: =E5=9C=A8 2020=E5=B9=B41=E6=9C=8814=E6=97=A5 +0800 PM11:35=EF=BC=8CEli Za= retskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Tue, 14 Jan 2020 15:41:44 +0800 > > =46rom: HaiJun Zhang > > > > export GDK=5FSCALE=3D2 > > emacs -Q > > > > The font size is good. Then I eval =E2=80=98(set-frame-font =E2=80=9C= Monospace:size=3D16=E2=80=9D)=E2=80=99. The font becomes too small now. I= t works well on non-hiDPI screen. > > In what version of Emacs, and how was it compiled=3F > Emacs: 26.3. I have found a resolution.=C2=A0Changing=C2=A0=E2=80=98(set-frame-font =E2= =80=9CMonospace:size=3D16=E2=80=9D)=E2=80=99 to=C2=A0=E2=80=98(set-frame-= font =E2=80=9CMonospace 16=E2=80=9D)=E2=80=99 fixes it. Does the size in the former means pixel size=3F And the latter means font= size=3F