aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-10-05 16:21:35 -0400
committerGitHub <noreply@github.com>2016-10-05 16:21:35 -0400
commit0fe23860145af688459e11acfd96ba81cffb2184 (patch)
tree10c78996acd12c30d25398dd880f78b517a22505
parentfade7329dcd5c1f6f38dadaf45b6fafffa79fb2f (diff)
parent83103abde6d00fc9dc7a65a83470c5a517029742 (diff)
Merge pull request #928 from wasamasa/bugfix-swaylock-font
Explicitly set cairo font to avoid wonky fallback
-rw-r--r--swaylock/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index 075e44e7..3dee6e4f 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -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: