View Source Vivid.Font.Char (vivid v0.4.4)
Describes an individual character defined by a Hershey font file.
Summary
Functions
Returns the left padding specified for this character.
Rendered height of a character.
Rendered width of a character.
Returns the right padding specified for this 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
Returns the left padding specified for this character.
Rendered height of a character.
Rendered width of a character.
Returns the right padding specified for this character.
@spec to_shape(t(), Vivid.Point.t(), number()) :: Vivid.Shape.t()
Convert a %Char{} into a shape which can be rendered.
char
is a%Char{}
struct.center
the center%Point{}
around which to render the character.scale
how 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.