sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 83103abde6d00fc9dc7a65a83470c5a517029742
parent fade7329dcd5c1f6f38dadaf45b6fafffa79fb2f
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Date:   Wed,  5 Oct 2016 22:07:39 +0200

Explicitly set cairo font to avoid wonky fallback

See also https://github.com/i3/i3lock/pull/89

Diffstat:
Mswaylock/main.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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: