This fixes a bug on Windows, where Pango doesn't have a font
named "sans serif" but does have one named "Sans".
Reported and tested by Harry Thijssen.
PangoLayout *layout;
double x, y;
- desc = pango_font_description_from_string ("sans serif");
+ desc = pango_font_description_from_string ("Sans");
if (desc == NULL)
{
cairo_new_path (cr);
int width_pango;
int height_pango;
- desc = pango_font_description_from_string ("sans serif");
+ desc = pango_font_description_from_string ("Sans");
if (desc == NULL)
return;
pango_font_description_set_absolute_size (desc, geom->font_size * PANGO_SCALE);