Currently, the function DFont.set_variations_from_static attempts to infer the correct instance values by using the static font's filename or its OS/2 values. A better approach is to check whether the VF contains an instance which has the same name as the static font's typographic subfamily name or subfamilyname. If it does, just use this instance, if it doesnt, infer the values.
Currently, the function
DFont.set_variations_from_static
attempts to infer the correct instance values by using the static font's filename or its OS/2 values. A better approach is to check whether the VF contains an instance which has the same name as the static font's typographic subfamily name or subfamilyname. If it does, just use this instance, if it doesnt, infer the values.