Fix wrong font name loading problem
parent
8092da597b
commit
5846c2b52f
|
@ -50,8 +50,11 @@ font_ft_get_face(FT_Library ft, Font_Loadable_Stub *stub, Font_Parameters *param
|
||||||
if (path.len > 0){
|
if (path.len > 0){
|
||||||
FT_Error error = FT_New_Face(ft, path.name, 0, face);
|
FT_Error error = FT_New_Face(ft, path.name, 0, face);
|
||||||
success = (error == 0);
|
success = (error == 0);
|
||||||
|
if (success){
|
||||||
|
success = match((*face)->family_name, stub->name);
|
||||||
do_transform = (success && path.used_base_file);
|
do_transform = (success && path.used_base_file);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue