Make labels smaller to fit in key rectangles.

This commit is contained in:
Daiki Ueno
2010-06-04 18:18:01 +09:00
parent 0733f11105
commit 6153044e49

View File

@ -254,7 +254,9 @@ draw_key_on_layout (EekKey *key,
g_object_unref (buffer); g_object_unref (buffer);
/* Actually draw on the layout */ /* Actually draw on the layout */
draw_text_on_layout (layout, label, scale_x < scale_y ? scale_x : scale_y); draw_text_on_layout (layout,
label,
(scale_x < scale_y ? scale_x : scale_y) * 0.8);
if (label != empty_label) if (label != empty_label)
g_free ((gpointer)label); g_free ((gpointer)label);
} }