Browse Source

Fix setting font in draw_text

master
Jaan Toots 6 years ago
parent
commit
5794922ca5
  1. 1
      unlock_indicator.c

1
unlock_indicator.c

@ -278,6 +278,7 @@ static void draw_text(cairo_t *ctx, text_t text) {
if (!text.show) if (!text.show)
return; return;
cairo_text_extents_t extents; cairo_text_extents_t extents;
cairo_set_font_face(ctx, text.font);
cairo_set_font_size(ctx, text.size); cairo_set_font_size(ctx, text.size);
cairo_text_extents(ctx, text.str, &extents); cairo_text_extents(ctx, text.str, &extents);

Loading…
Cancel
Save