FontCollection::into_font doesn't work on TrueType Collections
Created by: jimblandy
FontCollection::into_font
is intended to convert TrueType Collection files that contain only a single font into a Font
value, but the code is incorrect. If the FontCollection
's data fails the stb_truetype-rs::is_font
predicate, into_font
always returns None
, but is_font
returns false for collections.