Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-02-17 13:16:29 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-02-17 13:16:29 +0400
commitee3e0169c93b63e00694b8b696604d006ed554b1 (patch)
tree4b8378db81caa4f8d4cf150c43b56116de07efcd /main/src/addins/MonoDevelop.HexEditor
parent3c45f391196bdaac0df78168783b221e9666921c (diff)
[HexEditor] Fix font fallback on linux.
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor')
-rw-r--r--main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditorOptions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditorOptions.cs b/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditorOptions.cs
index ba172c5fb1..e7ed34083e 100644
--- a/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditorOptions.cs
+++ b/main/src/addins/MonoDevelop.HexEditor/Mono.MHex/HexEditorOptions.cs
@@ -132,7 +132,7 @@ namespace Mono.MHex
catch {
Console.WriteLine ("Could not load font: {0}", FontName);
}
- if (font == null || String.IsNullOrEmpty (font.Family))
+ if (font == null || FontName.IndexOf (font.Family, StringComparison.Ordinal) < 0)
font = Font.SystemMonospaceFont;
if (font != null)
font = font.WithSize (font.Size * Zoom);