Expand description
Draw text.
Re-exports§
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.
Constants§
- FIRA_
SANS_ REGULAR fira-sans - The regular variant of the Fira Sans font.
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.