From 27f71af8c85d87358bd1d32eb89846d6c445425a Mon Sep 17 00:00:00 2001 From: jasonchenwork Date: Wed, 21 May 2025 15:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E9=AB=94=E9=A1=AF=E7=A4=BA=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PrimaryFormParts/PrimaryForm.MultiPagePanel.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs b/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs index 5851852..2b55a7d 100644 --- a/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs +++ b/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs @@ -452,15 +452,15 @@ namespace DualScreenDemo int textLength = fullText.Length; // 計算文字寬度 - Font normalFont = new Font("微軟正黑體", 22, FontStyle.Bold); - Font mediumFont = new Font("微軟正黑體", 16, FontStyle.Bold); + Font normalFont = new Font("微軟正黑體", 20, FontStyle.Bold); + Font mediumFont = new Font("微軟正黑體", 14, FontStyle.Bold); Font smallFont = new Font("微軟正黑體", 12, FontStyle.Bold); // 根據文字長度設置字體大小 if (textLength > 18) { songLabel.Font = smallFont; } - else if (textLength > 13) + else if (textLength > 8) { songLabel.Font = mediumFont; } @@ -540,15 +540,15 @@ namespace DualScreenDemo // 根據文字長度設置字體大小 if (artistText.Length > 6) { - artistLabel.Font = new Font("微軟正黑體", 12, FontStyle.Bold); + artistLabel.Font = new Font("微軟正黑體", 10, FontStyle.Bold); } - else if (artistText.Length > 4) + else if (artistText.Length > 3) { - artistLabel.Font = new Font("微軟正黑體", 14, FontStyle.Bold); + artistLabel.Font = new Font("微軟正黑體", 12, FontStyle.Bold); } else { - artistLabel.Font = new Font("微軟正黑體", 16, FontStyle.Bold); + artistLabel.Font = new Font("微軟正黑體", 14, FontStyle.Bold); } //artistLabel.Font = new Font("微軟正黑體", 16, FontStyle.Bold);