From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-045.btinternet.com (mailomta28-re.btinternet.com [213.120.69.121]) by sourceware.org (Postfix) with ESMTPS id B4FD93858D1E for ; Thu, 11 Apr 2024 12:42:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4FD93858D1E 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 B4FD93858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712839381; cv=none; b=ezy2paLGUvakKRo1EX1DK8OxpmZlbuIlbYdGBLCBrjYbh3hV27sPWh9Ti3LdfDeTsWneSt1fmKIBs5lkwYBHPA2mgX7rHhkhNd1yfmL+dZ+n+BcKL2dYBzyVJW/IYeCsrRlfZfZrZxzsIfwlXlsSIUUWJ+8wftsdDGbe2cUIBuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712839381; c=relaxed/simple; bh=0oxKRKpEXwTxEu9SQXlITizpEVABVDQqQSXu7sKO6QQ=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=gqgAeebtfERizy3OOBdLGqhA1kMU1jkerump9RtV/YgonZAxspeVpbMyg2C//yNnxEKJBFsCR4BW56L9Z99evZf8GAmrjnJhfC4cGVkQ4WDKsNg9s1SaSKf/52KX0L5RgBf/xlDcUShQaewcD2SzzG7GCYVqfPfhpggvLM5PfUQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from re-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.54.7]) by re-prd-fep-045.btinternet.com with ESMTP id <20240411124257.DZZB21611.re-prd-fep-045.btinternet.com@re-prd-rgout-004.btmx-prd.synchronoss.net>; Thu, 11 Apr 2024 13:42:57 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 6577B87C0E1443A5 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: gggruggvucftvghtrhhoucdtuddrgedvledrudehkedgheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhepkfffgggfuffvfhfhvegjtgfgsehtkeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpedtudeugeeltdefhedukeetfeegkeejiedvhedthfdukeduudeuvdeiffejgeeihfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeekiedrudegtddrudelfedrvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegtddrudelfedrvdehpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohephiihlhhofhhfihgtihgrlheshhhothhmrghilhdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddugedtqdduleefqddvhedrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhm pdhgvghokffrpefiuedpoffvtefjohhstheprhgvqdhprhguqdhrghhouhhtqddttdeg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.109] (86.140.193.25) by re-prd-rgout-004.btmx-prd.synchronoss.net (authenticated as jonturney@btinternet.com) id 6577B87C0E1443A5; Thu, 11 Apr 2024 13:42:57 +0100 Message-ID: Date: Thu, 11 Apr 2024 13:42:54 +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 References: From: Jon Turney Content-Language: en-US Cc: cygwin@cygwin.com In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,BODY_8BITS,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 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'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 wonder if we ought to be using "MS Shell Dlg 2" and/or DS_SHELLFONT, but the documentation about those is incomprehensible. If you have any future patches to setup, please send them to the cygwin-apps mailing list [1] https://github.com/translate/translate [2] (Although there may be some patches needed which have yet to make it upstream, so this might not work for you, yet)