X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 056603858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1713293271; bh=YMXwcjd2aDfZEEoE7Q0WTCWoe+MVV94nwF2T3Bqyb3k=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=HJ2UtIgoxb+VZWyRkc8Vuz5UCHSQI/UXv33WOWB88hZYZH8lwi5iO8PJsPAB/1Ozn 3u2yUnpPZm58A/QfAIgQeUEqKTWsgWjYVXsCgp3i5autW0hZ0iUsMgebbIsC7vBHOT IOwUO4DyMfq5lRiY7gcpmLmaxYvhHNMvz/n83oxU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42A653858D37 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42A653858D37 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 X-SNCR-Rigid: 65A567CD0A6A61E5 X-Originating-IP: [86.140.193.25] X-OWM-Source-IP: 86.140.193.25 X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT 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 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 AT cygwin DOT com References: Content-Language: en-US In-Reply-To: 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43GIlqa22813855 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple