Module text
Expand description
Draw text.
Modules§
- cache
- Cache text.
- cosmic_
text - COSMIC Text
- editor
- Draw and edit text.
- paragraph
- Draw paragraphs.
Structs§
- Cache
- A store of recently used sections of text.
- Editor
- A multi-line text editor.
- Font
System - A set of system fonts.
- Paragraph
- A bunch of text.
- Raw
- A weak reference to a
cosmic_text::Bufferthat can be drawn. - Version
- A version number.
Enums§
- Text
- A text primitive.
Traits§
- Renderer
- A text renderer coupled to
iced_graphics.
Functions§
- align
- Aligns the given
cosmic_text::Bufferwith the givenAlignmentand returns its minimumSize. - font_
system - Returns the global
FontSystem. - measure
- Measures the dimensions of the given
cosmic_text::Buffer. - to_
attributes - Returns the attributes of the given
Font. - to_
color - Converts some
Colorto acosmic_text::Color. - to_
ellipsize - Converts some [
Ellipsize] strategy to acosmic_text::Ellipsizestrategy. - to_
ellipsize_ height_ limit - to_
shaping - Converts some
Shapingstrategy to acosmic_text::Shapingstrategy. - to_
shaping_ ascii - Converts some
Shapingstrategy to acosmic_text::Shapingstrategy. - to_wrap
- Converts some
Wrappingstrategy to acosmic_text::Wrapstrategy.