From 0600309498ec0fd91b2b80ec38885adc1e386919 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Mon, 17 Sep 2012 19:40:39 -0400 Subject: [PATCH] have the hints use the same font as the vte --- termite.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/termite.cc b/termite.cc index 0fabf13..ec696e0 100644 --- a/termite.cc +++ b/termite.cc @@ -166,6 +166,8 @@ static void draw_marker(cairo_t *cr, const char *font, long x, long y, int paddi static gboolean draw_cb(GtkDrawingArea *, cairo_t *cr, VteTerminal *vte) { if (!url_list.empty()) { + const PangoFontDescription *desc = vte_terminal_get_font(vte); + const char *font = pango_font_description_get_family(desc); const long cw = vte_terminal_get_char_width(vte); const long ch = vte_terminal_get_char_height(vte); @@ -177,8 +179,7 @@ static gboolean draw_cb(GtkDrawingArea *, cairo_t *cr, VteTerminal *vte) { url_data data = url_list[i]; const long x = data.col * cw; const long y = data.row * ch; - - draw_marker(cr, "Monospaced", x, y, 3, i + 1); + draw_marker(cr, font, x, y, 3, i + 1); } }