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

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Xwt
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2017-06-27 11:04:19 +0300
committerVsevolod Kukol <sevoku@microsoft.com>2017-06-27 11:04:19 +0300
commitb9fc3ab78357c987fc43795f2197b6f75765c5e1 (patch)
tree7eb0d8239365f52ee1669320e93d230bbb876f94 /Xwt
parent2f416f3c5f587d091af8b96b1662ca5d8163837c (diff)
[Mac] Fix invalid -apple-system-font warning
This fixes a croner case on Mac where Gtkrc must define an invalid font name, because GTK can not handle the special .AppleSystemUIFont name.
Diffstat (limited to 'Xwt')
-rw-r--r--Xwt/Xwt.Drawing/Font.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xwt/Xwt.Drawing/Font.cs b/Xwt/Xwt.Drawing/Font.cs
index e2cfea6a..60ee4e38 100644
--- a/Xwt/Xwt.Drawing/Font.cs
+++ b/Xwt/Xwt.Drawing/Font.cs
@@ -248,7 +248,9 @@ namespace Xwt.Drawing
// add dummy font names for unit tests, the names are not exposed to users
// see the FontNameWith* tests (Testing/Tests/FontTests.cs) for details
installedFonts.Add("____FakeTestFont 72", "Arial");
- installedFonts.Add("____FakeTestFont Rounded MT Bold", "Arial");
+ installedFonts.Add ("____FakeTestFont Rounded MT Bold", "Arial");
+ // HACK: add font mapping for patched pango SF Font support
+ installedFonts.Add ("-apple-system-font", ".AppleSystemUIFont");
}
}