Skip to content

Commit

Permalink
Fix font query result with multiple comma-separated values
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody authored Mar 29, 2024
1 parent 0176693 commit a6fa950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenUtau/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<App>()
Expand Down

0 comments on commit a6fa950

Please sign in to comment.