Module text

Module text 

Source
Expand description

Draw text.

Re-exports§

pub use cache::Cache;
pub use editor::Editor;
pub use paragraph::Paragraph;
pub use cosmic_text;

Modules§

cache
Cache text.
editor
Draw and edit text.
paragraph
Draw paragraphs.

Structs§

FontSystem
A set of system fonts.
Raw
A weak reference to a cosmic_text::Buffer that 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::Buffer with the given Alignment and returns its minimum Size.
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 Color to a cosmic_text::Color.
to_shaping
Converts some Shaping strategy to a cosmic_text::Shaping strategy.
to_wrap
Converts some Wrapping strategy to a cosmic_text::Wrap strategy.