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/GraphicObjects/Label.cs | |
| parent | 2b4574f91b46193f9be68e65d1be1ab0038160c2 (diff) | |
global FontRenderingOptions for cairo
Diffstat (limited to 'src/GraphicObjects/Label.cs')
| -rw-r--r-- | src/GraphicObjects/Label.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs index 769220dd..22a60aa0 100644 --- a/src/GraphicObjects/Label.cs +++ b/src/GraphicObjects/Label.cs @@ -334,6 +334,7 @@ namespace Crow CurrentColumn = 0; NotifyValueChanged ("Text", Text); } + #region GraphicObject overrides protected override int measureRawSize(LayoutingType lt) { @@ -381,10 +382,10 @@ namespace Crow gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); gr.SetFontSize (Font.Size); + gr.FontOptions = Interface.FontRenderingOptions; gr.Antialias = Antialias.Subpixel; - //gr.FontOptions.Antialias = Antialias.Subpixel; - //gr.FontOptions.HintMetrics = HintMetrics.On; + rText = new Rectangle(new Size( measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height))); @@ -632,6 +633,7 @@ namespace Crow RegisterForGraphicUpdate (); } #endregion + /// <summary> /// Update Current Column, line and TextCursorPos /// from mouseLocalPos |