Move pango_cairo_font_map_set_default() to font.c

This commit is contained in:
Johan Malm 2020-10-31 15:41:06 +00:00
parent 2f44e954aa
commit 58fdf9776f
3 changed files with 14 additions and 4 deletions

View file

@ -42,3 +42,9 @@ font_height(const char *font_description)
rectangle = font_extents(font_description, "abcdefg");
return rectangle.height;
}
void
font_finish(void)
{
pango_cairo_font_map_set_default(NULL);
}