Skip to content

Commit

Permalink
Merge pull request #1085 from SoulMelody/fix-linux-default-font-family
Browse files Browse the repository at this point in the history
Fix font query result with multiple comma-separated values
  • Loading branch information
stakira authored Apr 20, 2024
2 parents a849c77 + a6fa950 commit 9ef2d4f
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 9ef2d4f

Please sign in to comment.