]> Devoid-pointer.net GitWeb - Nine-Q.git/commitdiff
Force subpixel antialiasing for Cairo
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 26 Dec 2014 02:24:32 +0000 (03:24 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 26 Dec 2014 02:24:32 +0000 (03:24 +0100)
src/problem_generators/problem_generator-titration_curve_suite.adb

index c9ab08c996040be86e31cd2c4a27c9cfcb131925..e1a4606035ff4aed81940427ffba3f93cedf1889 100644 (file)
@@ -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));