1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2025-02-17 15:55:52 -05:00

Fix setting font in draw_text

This commit is contained in:
Jaan Toots 2018-07-08 15:50:30 +01:00
parent ce7c826acb
commit 5794922ca5

View file

@ -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);