Crate kas_text

Source
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§

fonts
Font selection and loading
format
Parsers for formatted text
raster
Support for rastering glyphs

Structs§

DPU
Scale factor: pixels per font unit
Effect
Effect formatting marker
EffectFlags
Text effects
Glyph
A positioned glyph
GlyphId
A type-safe wrapper for glyph ID.
MarkerPos
Used to return the position of a glyph with associated metrics
MarkerPosIter
NotReady
Error returned on operations if not ready
OwningVecIter
An iterator over a Vec which clones elements
Range
Range type
Text
Text type-setting object (high-level API)
TextDisplay
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