From 3c9c97b74c29df5ce11089e633f1e2d48702480d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 26 Dec 2014 03:24:32 +0100 Subject: [PATCH] Force subpixel antialiasing for Cairo --- .../problem_generator-titration_curve_suite.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/problem_generators/problem_generator-titration_curve_suite.adb b/src/problem_generators/problem_generator-titration_curve_suite.adb index c9ab08c..e1a4606 100644 --- a/src/problem_generators/problem_generator-titration_curve_suite.adb +++ b/src/problem_generators/problem_generator-titration_curve_suite.adb @@ -507,6 +507,7 @@ package body Titration_Curve_Suite is begin Cairo.Select_Font_Face(Ctx, "Cantarell", Cairo.CAIRO_FONT_SLANT_NORMAL, Cairo.CAIRO_FONT_WEIGHT_NORMAL); Cairo.Set_Font_Size(Ctx, FONT_SIZE); + Cairo.Set_Antialias(Ctx, Cairo.CAIRO_ANTIALIAS_SUBPIXEL); -- Draw background Cairo.Set_Source_Rgb(Ctx, 1.0, 1.0, 1.0); Cairo.Rectangle(Ctx, 0.0, 0.0, Glib.GDouble(IMAGE_WIDTH), Glib.GDouble(IMAGE_HEIGHT)); -- 2.43.5