diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-11 06:24:45 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-11 06:24:45 +0200 |
| commit | 10fd075dd4aa49d90a75e7e41a15a28996b6b736 (patch) | |
| tree | b51c5cb216c6679a88b67a4e79b7d2d630b186ed /src/Interface.cs | |
| parent | 2b4574f91b46193f9be68e65d1be1ab0038160c2 (diff) | |
global FontRenderingOptions for cairo
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index 0ab08f59..d0c385e7 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -35,6 +35,12 @@ namespace Crow #region CTOR static Interface(){ Interface.LoadCursors (); + + FontRenderingOptions = new FontOptions (); + FontRenderingOptions.Antialias = Antialias.Subpixel; + FontRenderingOptions.HintMetrics = HintMetrics.On; + FontRenderingOptions.HintStyle = HintStyle.Medium; + FontRenderingOptions.SubpixelOrder = SubpixelOrder.Rgb; } public Interface(){ LayoutingQueue = new Queue<LayoutingQueueItem>(); @@ -64,6 +70,7 @@ namespace Crow public static int BorderThreshold = 5; public const int MaxCacheSize = 2048; public const int MaxLayoutingTries = 50; + public static FontOptions FontRenderingOptions; #endregion public Queue<LayoutingQueueItem> LayoutingQueue; |