clients: don't use deprecated fontconfig aliases

The "sans" and "mono" aliases for "sans-serif" and "monospace" are
deprecated[1].  Let's standardize on the non-deprecated versions, which were
already in use in some places.

[1]: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/be453bd1590b545d490aa024ef267948419b4d3a/fonts.conf.in#L33-67

Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
Alyssa Ross
2021-11-17 17:25:17 +00:00
committed by Marius Vlad
parent 6e2eb8fa94
commit 7c12182576
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -494,7 +494,7 @@ create_layout(cairo_t *cr, const char *title)
layout = pango_cairo_create_layout(cr);
if (title) {
pango_layout_set_text(layout, title, -1);
desc = pango_font_description_from_string("Sans Bold 10");
desc = pango_font_description_from_string("sans-serif Bold 10");
pango_layout_set_font_description(layout, desc);
pango_font_description_free(desc);
}
@@ -577,7 +577,7 @@ theme_render_frame(struct theme *t,
cairo_text_extents_t extents;
cairo_font_extents_t font_extents;
cairo_select_font_face(cr, "sans",
cairo_select_font_face(cr, "sans-serif",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size(cr, 14);