Skip to content

Commit

Permalink
Add Liberation Mono as monospace font fallback for Wine compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Aug 11, 2024
1 parent f20c005 commit 5ea1e36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnSpy/dnSpy.Contracts.DnSpy/Controls/FontUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static class FontUtilities {
"Lucida Console",
"Courier New",
"Courier",
"Liberation Mono",
GLOBAL_MONOSPACE_FONT,
};

Expand Down Expand Up @@ -172,7 +173,7 @@ public static bool IsSymbol(FontFamily ff) {
/// Gets all monospaced fonts
/// </summary>
/// <returns></returns>
public static FontFamily[] GetMonospacedFonts() => SystemFontFamilies.Where(a => IsMonospacedFont(a)).OrderBy(a => a.Source.ToUpperInvariant()).ToArray();
public static FontFamily[] GetMonospacedFonts() => SystemFontFamilies.Where(IsMonospacedFont).OrderBy(a => a.Source.ToUpperInvariant()).ToArray();

/// <summary>
/// Checks whether <paramref name="ff"/> is a monospaced font. It currently only checks
Expand Down

0 comments on commit 5ea1e36

Please sign in to comment.