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

Reply via email to