From a6fa9502f03716967e92b985073877818f3f8586 Mon Sep 17 00:00:00 2001 From: SoulMelody Date: Fri, 29 Mar 2024 21:03:26 +0800 Subject: [PATCH] Fix font query result with multiple comma-separated values --- OpenUtau/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenUtau/Program.cs b/OpenUtau/Program.cs index 5bd81c28a..26c2b02d9 100644 --- a/OpenUtau/Program.cs +++ b/OpenUtau/Program.cs @@ -63,7 +63,8 @@ public static AppBuilder BuildAvaloniaApp() { string fontFamily = process.StandardOutput.ReadToEnd(); if (!string.IsNullOrEmpty(fontFamily)) { - fontOptions.DefaultFamilyName = fontFamily; + string [] fontFamilies = fontFamily.Split(','); + fontOptions.DefaultFamilyName = fontFamilies[0]; } } return AppBuilder.Configure()