Struct speedy2d::font::Codepoint [−][src]
pub struct Codepoint { /* fields omitted */ }
Expand description
A struct representing a Unicode codepoint, for the purposes of text layout.
The user_index
field allows you to determine which output glyph
corresponds to which input codepoint.
Implementations
The Unicode codepoint for a zero width space. You may use this to denote places where it would be appropriate to insert a line break when wrapping.
Instantiates a new Codepoint
. The value provided for user_index
will
be present in the corresponding FormattedGlyph
object returned
during layout.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Codepoint
impl UnwindSafe for Codepoint
Blanket Implementations
Mutably borrows from an owned value. Read more