Module text

Source
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.
FontSystem
A set of system fonts.
Paragraph
A bunch of text.
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 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.