aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-13 23:36:14 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-13 23:36:14 +0100
commite4b3f163986955b39913d1e4ff1456bb0b299252 (patch)
tree653dc21700a58dd172c3acd66985672d9c78c71c /src/GraphicObjects
parentb741fbb78971f336a26614732e95ac21c760bf1a (diff)
3d interfaces
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 25332832..e0f1ebfd 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -634,7 +634,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
@@ -1062,7 +1062,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)));