From 70131db8d0ccf7480f4b2f4722d26e7fd89e1692 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 2 Apr 2017 12:34:12 +0200 Subject: Slightly increase the font size for the key labels It was 10, it is 12 now https://bugzilla.gnome.org/show_bug.cgi?id=642903 taken from: https://git.gnome.org/browse/libgnomekbd/commit/?id=efb1354 --- libmatekbd/matekbd-keyboard-drawing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c index d7d454e..6b02fb0 100644 --- a/libmatekbd/matekbd-keyboard-drawing.c +++ b/libmatekbd/matekbd-keyboard-drawing.c @@ -39,6 +39,8 @@ #define GTK_RESPONSE_PRINT 2 +#define KEY_FONT_SIZE 12 + enum { BAD_KEYCODE = 0, NUM_SIGNALS @@ -1519,7 +1521,7 @@ context_setup_scaling (MatekbdKeyboardDrawingRenderContext * context, } pango_font_description_set_size (context->font_desc, - 720 * dpi_x * + 72 * KEY_FONT_SIZE * dpi_x * context->scale_numerator / context->scale_denominator); pango_layout_set_spacing (context->layout, -- cgit v1.2.1