Skip to content

Commit

Permalink
Merge pull request #928 from wasamasa/bugfix-swaylock-font
Browse files Browse the repository at this point in the history
Explicitly set cairo font to avoid wonky fallback
  • Loading branch information
ddevault committed Oct 13, 2016
1 parent a5a3ae5 commit 28c0426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swaylock/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 28c0426

Please sign in to comment.