FontInfo
What a font file says about itself, as read_font reads it.
Import
Section titled “Import”Cargo feature font (enabled by default). To compile only this module:
or in Cargo.toml:
Definition
Section titled “Definition”Examples
Section titled “Examples”Methods
Section titled “Methods”to_face
Section titled “to_face”The face to give to pick_closest: a variable font covers its
wght range, a static one its weight.
Returns
FontFace — The face, italic when the font is.
