aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-24 01:29:09 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-24 01:29:09 +0100
commitf987a58bfb6df496a4ca82f6425d27a421269e8b (patch)
tree3361f60ffc4028fffc9160ebc37c465cf4560ffa /src/GraphicObjects
parent649e3c81ca16138aa2a8084991462cc3a8a62038 (diff)
parent40e30c5fb023543d92ab52ceb1e09099ce70cd78 (diff)
Merge branch 'master' into CrowIDE
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/GraphicObject.cs4
-rw-r--r--src/GraphicObjects/Label.cs4
-rw-r--r--src/GraphicObjects/TextRun.cs3
3 files changed, 4 insertions, 7 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index fc13c4a1..e7ff3d81 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -631,7 +631,7 @@ namespace Crow
List<Style> styling = new List<Style>();
- //Search for a style mathing :
+ //Search for a style matching :
//1: Full class name, with full namespace
//2: class name
//3: style may have been registered with their ressource ID minus .style extention
@@ -1060,7 +1060,7 @@ namespace Crow
using (ImageSurface draw =
new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, stride)) {
using (Context gr = new Context (draw)) {
- gr.Antialias = Antialias.Subpixel;
+ gr.Antialias = Interface.Antialias;
onDraw (gr);
}
draw.Flush ();
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs
index 2f35c223..e55a4b18 100644
--- a/src/GraphicObjects/Label.cs
+++ b/src/GraphicObjects/Label.cs
@@ -468,9 +468,7 @@ namespace Crow
gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight);
gr.SetFontSize (Font.Size);
gr.FontOptions = Interface.FontRenderingOptions;
-
- gr.Antialias = Antialias.Subpixel;
-
+ gr.Antialias = Interface.Antialias;
rText = new Rectangle(new Size(
measureRawSize(LayoutingType.Width), measureRawSize(LayoutingType.Height)));
diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs
index 6b6f7999..3702c880 100644
--- a/src/GraphicObjects/TextRun.cs
+++ b/src/GraphicObjects/TextRun.cs
@@ -167,8 +167,7 @@ namespace Crow
gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight);
gr.SetFontSize (Font.Size);
gr.FontOptions = Interface.FontRenderingOptions;
-
- gr.Antialias = Antialias.Subpixel;
+ gr.Antialias = Interface.Antialias;
rText = new Rectangle (new Size (
measureRawSize (LayoutingType.Width), measureRawSize (LayoutingType.Height)));