Browse Source

Merge pull request #102 from jaantoots/font-patch

Fix setting font in draw_text
master
Cassandra 6 years ago
committed by GitHub
parent
commit
5bbdd02588
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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)
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);

Loading…
Cancel
Save