From: Michal Malý Date: Wed, 24 Dec 2014 02:12:04 +0000 (+0100) Subject: - Force Cantarell fonts X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=ecf90f212378bbd5210619f9a162a4d1a1ab676f;p=Nine-Q.git - Force Cantarell fonts - Fix a typo in the titration curve chart --- diff --git a/src/problem_generators/problem_generator-titration_curve_suite.adb b/src/problem_generators/problem_generator-titration_curve_suite.adb index 835a019..784239e 100644 --- a/src/problem_generators/problem_generator-titration_curve_suite.adb +++ b/src/problem_generators/problem_generator-titration_curve_suite.adb @@ -488,6 +488,7 @@ package body Titration_Curve_Suite is Y_Step: constant Glib.GDouble := IMAGE_CHART_HEIGHT / 14.0; begin + Cairo.Select_Font_Face(Ctx, "Cantarell", Cairo.CAIRO_FONT_SLANT_NORMAL, Cairo.CAIRO_FONT_WEIGHT_NORMAL); Cairo.Set_Font_Size(Ctx, FONT_SIZE); -- Draw background Cairo.Set_Source_Rgb(Ctx, 1.0, 1.0, 1.0); @@ -514,7 +515,7 @@ package body Titration_Curve_Suite is Cairo.Stroke(Ctx); Cairo.Set_Source_Rgb(Ctx, 0.0, 0.0, 0.0); Cairo.Move_To(Ctx, LEGEND_X_CALCD_COORD + LEGEND_MARK_TEXT_X_OFFSET, LEGEND_Y_TEXT_COORD); - Cairo.Show_Text(Ctx, "Vypočtená odpoveď"); + Cairo.Show_Text(Ctx, "Vypočtená odpověď"); Cairo.Stroke(Ctx); -- Set line properties