summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <v.schneidermann@gmail.com>2016-10-05 22:07:39 +0200
committerVasilij Schneidermann <v.schneidermann@gmail.com>2016-10-05 22:07:54 +0200
commitbc3b7a870c9c93805c8e5ea68d2154292a3cc994 (patch)
tree3bf7509e1c4b82f0d6c9e77ee5a152f6256a3320
parentdd1eb78931e31b258e93b6f473c34e0bf76c27b1 (diff)
Explicitly set cairo font to avoid wonky fallback
See also https://github.com/i3/i3lock/pull/89
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 075e44e..3dee6e4 100644
--- a/main.c
+++ b/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: