diff --git a/src/register_font.cc b/src/register_font.cc index 37182c0ac..cc0af52d7 100644 --- a/src/register_font.cc +++ b/src/register_font.cc @@ -303,7 +303,7 @@ get_pango_font_description(unsigned char* filepath) { return NULL; } - pango_font_description_set_family_static(desc, family); + pango_font_description_set_family(desc, family); free(family); pango_font_description_set_weight(desc, get_pango_weight(table->usWeightClass)); pango_font_description_set_stretch(desc, get_pango_stretch(table->usWidthClass));