From 5794922ca5b98f6f5b57547872aeea636adc67bb Mon Sep 17 00:00:00 2001 From: Jaan Toots Date: Sun, 8 Jul 2018 15:50:30 +0100 Subject: [PATCH] Fix setting font in draw_text --- unlock_indicator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/unlock_indicator.c b/unlock_indicator.c index c3105d6..2dab2be 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -278,6 +278,7 @@ static void draw_text(cairo_t *ctx, text_t text) { if (!text.show) return; cairo_text_extents_t extents; + cairo_set_font_face(ctx, text.font); cairo_set_font_size(ctx, text.size); cairo_text_extents(ctx, text.str, &extents);