summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-02 12:34:12 +0200
committerraveit65 <[email protected]>2017-04-02 23:19:40 +0200
commit70131db8d0ccf7480f4b2f4722d26e7fd89e1692 (patch)
treec8130015887dbd265699d87d7236a853fdb32ace
parent7c8c179dd2584194731c62a34de346e284294aa9 (diff)
downloadlibmatekbd-70131db8d0ccf7480f4b2f4722d26e7fd89e1692.tar.bz2
libmatekbd-70131db8d0ccf7480f4b2f4722d26e7fd89e1692.tar.xz
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
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c4
1 files changed, 3 insertions, 1 deletions
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,