Expand description
Draw text.
Re-exports§
pub use cache::Cache;
pub use editor::Editor;
pub use paragraph::Paragraph;
pub use cosmic_text;
Modules§
Structs§
- Font
System - 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.
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 acosmic_text::Color
. - to_
shaping - Converts some
Shaping
strategy to acosmic_text::Shaping
strategy. - to_wrap
- Converts some
Wrapping
strategy to acosmic_text::Wrap
strategy.