diff options
author | raveit65 <[email protected]> | 2017-04-02 12:34:12 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-04 17:59:31 +0200 |
commit | 8d7526cba768a3626ede09b601efe95e2739f80e (patch) | |
tree | f918b8b5faac8d3f464aaef468156de0e546ae1c | |
parent | 47098e99757a01e599e03cceb1e637bf757101e9 (diff) | |
download | libmatekbd-8d7526cba768a3626ede09b601efe95e2739f80e.tar.bz2 libmatekbd-8d7526cba768a3626ede09b601efe95e2739f80e.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.c | 4 |
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, |