iced_graphics

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.

Constants§

FIRA_SANS_REGULARfira-sans
The regular variant of the Fira Sans font.

Functions§

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.