vivid v0.4.0 Vivid.Font.Char
Describes an individual character defined by a Hershey font file.
Summary
Functions
Rendered height of a character
Rendered width of a character
Convert a %Char{} into a shape which can be rendered
Returns the (documented) width of a specific character. This is not the maximum width of the character, as some go beyond or don’t reach their documented bounds. I assume this is for kerning. I may be wrong
Types
Functions
Rendered height of a character.
Rendered width of a character.
Convert a %Char{} into a shape which can be rendered.
charis a%Char{}struct.centerthe center%Point{}around which to render the character.scalehow much to scale the character by.
Returns the (documented) width of a specific character. This is not the maximum width of the character, as some go beyond or don’t reach their documented bounds. I assume this is for kerning. I may be wrong.