Explicitly set cairo font to avoid wonky fallback

See also https://github.com/i3/i3lock/pull/89
This commit is contained in:
Vasilij Schneidermann 2016-10-05 22:07:39 +02:00
parent fade7329dc
commit 83103abde6
1 changed files with 1 additions and 0 deletions

View File

@ -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: