Skip to content

Commit

Permalink
Explicitly set cairo font to avoid wonky fallback
Browse files Browse the repository at this point in the history
See also i3/i3lock#89
  • Loading branch information
wasamasa committed Oct 5, 2016
1 parent dd1eb78 commit bc3b7a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ void render(struct render_data *render_data) {
// Draw a message
char *text = NULL;
cairo_set_source_rgb(window->cairo, 0, 0, 0);
cairo_select_font_face(window->cairo, "sans-serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size(window->cairo, ARC_RADIUS/3.0f);
switch (render_data->auth_state) {
case AUTH_STATE_VALIDATING:
Expand Down

0 comments on commit bc3b7a8

Please sign in to comment.