X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B7523858424
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1712839434;
	bh=riigwIPPmmGpMhd9i6kmDaHNbVb9RgSt8K5/O4x5Ims=;
	h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=a3W1/wWMDg0uBxXPZoPZ3Z6oGOzdNeVJII53qc/B/AjCgi8I8WcR4fjqzbr0nnSNo
	 XNqO2D1jcGQlU/aU/okQ3SABbVaaWlql5pZQjY8Z4ULsvmZNhVaYSEZtqXMTgZV4CA
	 73KcGQpR4SQeX6hsoblIFb/j8ybUFcBH7gVTmJcg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4FD93858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B4FD93858D1E
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
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
Message-ID: <a050c9e8-4158-49e1-9a46-c6785cd1b891@dronecode.org.uk>
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 <yylofficial@hotmail.com>
References: <CY8PR10MB65629A75555083838A1CF46CA23D2@CY8PR10MB6562.namprd10.prod.outlook.com>
Content-Language: en-US
Cc: cygwin@cygwin.com
In-Reply-To: <CY8PR10MB65629A75555083838A1CF46CA23D2@CY8PR10MB6562.namprd10.prod.outlook.com>
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
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43BCht7F1073897

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)


-- 
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

