Expand description
KAS-text: text layout library
KAS-text supports plain text input, custom formatted text objects (see the
format
module) and a subset of Markdown (format::Markdown
,
feature-gated).
The library also supports glyph rastering (depending on feature flags).
Re-exports§
pub extern crate fontdb;
Modules§
Structs§
- DPU
- Scale factor: pixels per font unit
- Effect
- Effect formatting marker
- Effect
Flags - Text effects
- Glyph
- A positioned glyph
- GlyphId
- A type-safe wrapper for glyph ID.
- Marker
Pos - Used to return the position of a glyph with associated metrics
- Marker
PosIter - NotReady
- Error returned on operations if not ready
- Owning
VecIter - An iterator over a
Vec
which clones elements - Range
- Range type
- Text
- Text type-setting object (high-level API)
- Text
Display - Text type-setting object (low-level, without text and configuration)
- Vec2
- 2D vector (position/size/offset) over
f32
Enums§
- Align
- Alignment of contents
- Direction
- Directionality of text
- Status
- Describes the state-of-preparation of a
TextDisplay