mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Merge pull request #928 from wasamasa/bugfix-swaylock-font
Explicitly set cairo font to avoid wonky fallback
This commit is contained in:
commit
0fe2386014
|
@ -627,6 +627,7 @@ void render(struct render_data *render_data) {
|
||||||
// Draw a message
|
// Draw a message
|
||||||
char *text = NULL;
|
char *text = NULL;
|
||||||
cairo_set_source_rgb(window->cairo, 0, 0, 0);
|
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);
|
cairo_set_font_size(window->cairo, ARC_RADIUS/3.0f);
|
||||||
switch (render_data->auth_state) {
|
switch (render_data->auth_state) {
|
||||||
case AUTH_STATE_VALIDATING:
|
case AUTH_STATE_VALIDATING:
|
||||||
|
|
Loading…
Reference in a new issue