Skip to main content

Module text

Module text 

Source
Expand description

Text layout, shaping, and font management for Floem.

This module provides the renderer-facing text vocabulary built on Parley.

§Re-exports

FontStyle and FontWidth come from fontique.

Structs§

Attrs
Text styling attributes used to configure font properties, color, and layout.
AttrsList
A list of text attributes with default styling and per-range overrides.
AttrsOwned
An owned version of Attrs that does not borrow the font family slice.
FontWeight
Visual weight class of a font, typically on a scale from 1.0 to 1000.0.
FontWidth
Visual width of a font– a relative change from the normal aspect ratio, typically in the range 0.5 to 2.0.
Glyph
Glyph with an offset and advance.
GlyphRunProps
Rendering properties shared by a glyph run.
TextBrush
A brush wrapper that satisfies Parley’s Brush trait bound.

Enums§

FamilyOwned
An owned font family identifier.
FontStyle
Visual style or ‘slope’ of a font.
LineHeightValue
Specifies how line height is computed for text layout.

Traits§

GlyphDrawer

Type Aliases§

NormalizedCoord
Variable font design-space coordinate.