You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In get_advance_with_var_unscaled when the font is variable, first an HVAR based advance is attempted to be computed. If that fails, a glyf based / phantom-points advance is to be computed.
This value is unconditionally returned, even though the glyf based advance with computation could fail (for example when there is no glyf table).
IMO in this case, it'd be more robust behavior to still return the non-variable advance from line 402: unsigned int advance = get_advance_without_var_unscaled (glyph);
In
get_advance_with_var_unscaled
when the font is variable, first an HVAR based advance is attempted to be computed. If that fails, aglyf
based / phantom-points advance is to be computed.This value is unconditionally returned, even though the glyf based advance with computation could fail (for example when there is no
glyf
table).IMO in this case, it'd be more robust behavior to still return the non-variable advance from line 402:
unsigned int advance = get_advance_without_var_unscaled (glyph);
Can we do sth like:
The text was updated successfully, but these errors were encountered: