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
font.gvar()?.glyph_variation_data(GlyphId::new(0)) for a font where .notdef does not vary returns "Error: An offset was out of bounds".
This is surprising, because nothing actually went wrong, and I didn't even provide any offsets, so this looks to the user like a bug in the library. If the return type was Result<Option<...>> or Option<Result<...>>,instead of Result, then the lack of variation could be returned more clearly.
The text was updated successfully, but these errors were encountered:
font.gvar()?.glyph_variation_data(GlyphId::new(0))
for a font where.notdef
does not vary returns "Error: An offset was out of bounds".This is surprising, because nothing actually went wrong, and I didn't even provide any offsets, so this looks to the user like a bug in the library. If the return type was
Result<Option<...>>
orOption<Result<...>>
,instead ofResult
, then the lack of variation could be returned more clearly.The text was updated successfully, but these errors were encountered: