Skip to content

fontconfig: Try harder to return a default face

Matthias Clasen requested to merge regular-face into master

pango_font_family_get_face() is documented as nullable, so we are technically within our rights to return NULL, but that is unexpected when passing NULL to get the default face, and the family has faces. So, try a little harder by returning the first face if we don't find a face with the name "Regular".

Merge request reports