From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-045.btinternet.com (mailomta5-sa.btinternet.com [213.120.69.11]) by sourceware.org (Postfix) with ESMTPS id 42A653858D37 for ; Tue, 16 Apr 2024 18:46:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42A653858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42A653858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713293216; cv=none; b=epViytfDLGmKoNoOPfyLqGFjE9jIlJAOyrbLHmg6DS0+mPVYkrkUrAgoKziz2X3FyE/O0mt/Znv2AxL2/kW6a+5l8AXJ2FyUI9IytxxHwBvM+r9lkfPOEHvqRPeLvCiFF4w3qSIDFpfyxqW4ed9nlP4AR6QYnIF3f8aiFUEe2Jw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713293216; c=relaxed/simple; bh=cxmdUXS04Go3C9Z4aKEyCOgkOJYPrVcVKsipnC1QTws=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=QtwvOpR0BOQ6fA3ONPEPvifBVRdsP82HwjtTtW1owodETjv6HEFFYOAKBNE1+FAp2LE47l7A8aSK0DZnQ5afrp8bkgCrNV/TpzBgE0AQ+lZHzKwrk/eHRpzkEiGX77Lus2eYQ4n+pYnJH4utZSIEGYm2PM/6ves9jQTB+aJ5Gi0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from sa-prd-rgout-002.btmx-prd.synchronoss.net ([10.2.38.5]) by sa-prd-fep-045.btinternet.com with ESMTP id <20240416184652.LYUX29451.sa-prd-fep-045.btinternet.com@sa-prd-rgout-002.btmx-prd.synchronoss.net>; Tue, 16 Apr 2024 19:46:52 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 65A567CD0A6A61E5 X-Originating-IP: [86.140.193.25] X-OWM-Source-IP: 86.140.193.25 X-OWM-Env-Sender: jon.turney@dronecode.org.uk X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvledrudejiedgieejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpefhleeugeeivdetkeefvdeikeettedvgeeihfdvfefhhffgfeefveeftdfggeefgfenucffohhmrghinheptgihghifihhnrdgtohhmnecukfhppeekiedrudegtddrudelfedrvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegtddrudelfedrvdehpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohephiihlhhofhhfihgtihgrlheshhhothhmrghilhdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddugedtqdduleefqddvhedrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhm pdhgvghokffrpefiuedpoffvtefjohhsthepshgrqdhprhguqdhrghhouhhtqddttddv X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.109] (86.140.193.25) by sa-prd-rgout-002.btmx-prd.synchronoss.net (authenticated as jonturney@btinternet.com) id 65A567CD0A6A61E5; Tue, 16 Apr 2024 19:46:51 +0100 Message-ID: <5fdd9cc5-9cf1-4666-87c4-cbdaccd38975@dronecode.org.uk> Date: Tue, 16 Apr 2024 19:46:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Use Microsoft YaHei UI as UI font for Chinese language To: Yang Yu Lin Cc: cygwin@cygwin.com References: From: Jon Turney Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,BODY_8BITS,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,KAM_EXEURI,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/04/2024 13:42, Jon Turney via Cygwin wrote: > On 03/04/2024 14:19, Yang Yu Lin via Cygwin wrote: >> For Chinese language, the app’s default UI font is Microsoft YaHei UI. >> Using MS Shell Dlg makes the UI become annoying. >> Here are my changes: >> diff --git a/res/zh_Hans/res.rc b/res/zh_Hans/res.rc >> index 9f67a5a..da9d6e8 100644 >> --- a/res/zh_Hans/res.rc >> +++ b/res/zh_Hans/res.rc >> @@ -8,7 +8,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED >>   IDD_SOURCE DIALOG 0, 0, SETUP_STANDARD_DIALOG_DIMS >>   STYLE DS_MODALFRAME | DS_CENTER | WS_CHILD | WS_CAPTION | WS_SYSMENU >>   CAPTION "Cygwin 安装程序 - 选择安装类型" >> -FONT 8, "MS Shell Dlg" >> +FONT 9, "Microsoft YaHei UI" > > Thanks very much for this patch! > > So, this isn't applicable as is, because the localized res.rc files are > generated from a template res.rc file and the language .po file (using > po2rc from Translate Toolkit [1][2]).  See section starting after "rules > for translation maintenance" in Makefile.am > > However, this seems like it would be straightforward to do via a > post-processing step there. I added this. It seems this makes the whole dialog bigger (presumably since it's sized in DLU, which are based on the font metrics, which are different for this font). > I'll take your word over the aesthetics of the font choice, but I do > have a question about what versions of Windows we can assume that font > is available on (in theory at least, one might be using a current setup > executable to install Cygwin from the CTM on OSs back to Windows XP3) I've build an updated setup with these changes [1]. Please give this a try and see if it looks better to you. [1] https://cygwin.com/setup/setup-2.932.x86_64.exe