[libgnomekbd] Slightly increase the font size for the key labels



commit efb1354121c227c701ff045d909c0014f1112fde
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Mon Mar 14 17:34:53 2011 +0000

    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

 libgnomekbd/gkbd-keyboard-drawing.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 8a1fbc1..95d2ba4 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -40,6 +40,8 @@
 
 #define CAIRO_LINE_WIDTH 1.0
 
+#define KEY_FONT_SIZE 12
+
 enum {
 	BAD_KEYCODE = 0,
 	NUM_SIGNALS
@@ -1518,7 +1520,7 @@ context_setup_scaling (GkbdKeyboardDrawingRenderContext * 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]