Fix wrong font name loading problem

This commit is contained in:
Allen Webster 2017-11-21 15:00:12 -05:00
parent 8092da597b
commit 5846c2b52f
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@ font_ft_get_face(FT_Library ft, Font_Loadable_Stub *stub, Font_Parameters *param
if (path.len > 0){
FT_Error error = FT_New_Face(ft, path.name, 0, face);
success = (error == 0);
do_transform = (success && path.used_base_file);
if (success){
success = match((*face)->family_name, stub->name);
do_transform = (success && path.used_base_file);
}
}
else{
success = false;