Browse Source
Merge pull request #102 from jaantoots/font-patch
Fix setting font in draw_text
master
Cassandra
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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); |
|
|