Recommendations for Font management
From the current documentation it is unclear whether it is cheap to construct copies of the Font
type, although with the current APIs this is sometimes necessary.
From the code, it appears that a Font
is indeed quite cheap to copy. Since this type is a struct and not a trait, presumably this is the intended usage; documentation could however be a bit clearer.
Note also that since a GlyphBrush
does not allow access to its Font
list, retaining copies may be necessary to access methods like Font::v_metrics
.