summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-10-28 03:44:28 +0100
committerMikael Magnusson <mikachu@gmail.com>2014-10-28 04:14:24 +0100
commit396198081e72d6d758d51d4c6cdda1105be0df2d (patch)
tree5135b5dcf0c11f9855a360b9f6692d503c0f2824
parentd6797e53b429dbadd9a9f145731a5f90145bce83 (diff)
Use PANGO_UNDERLINE_SINGLE for rendering shortcuts
The pango docs say to use _LOW for accelerators, but that causes the line to be drawn beneath the ink extents which for us may be outside the area that gets displayed and we end up with no line at all. We also don't want to extend every menu entry with enough space to fit this possible line.
-rw-r--r--obrender/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/obrender/font.c b/obrender/font.c
index a22e23f5..0f56a552 100644
--- a/obrender/font.c
+++ b/obrender/font.c
@@ -73,7 +73,7 @@ RrFont *RrFontOpen(const RrInstance *inst, const gchar *name, gint size,
out->ref = 1;
out->font_desc = pango_font_description_new();
out->layout = pango_layout_new(inst->pango);
- out->shortcut_underline = pango_attr_underline_new(PANGO_UNDERLINE_LOW);
+ out->shortcut_underline = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE);
out->shortcut_underline->start_index = 0;
out->shortcut_underline->end_index = 0;