Skip to main content

Module text

Module text 

Source
Expand description

Font configuration, text layout and positioning. Shared source syntax for authored and prepared display text.

Structs§

FontFamily
A literal family identity or one of the three host generic preferences.
FontFamilyReport
The complete discovery and support result of one requested family.
FontSourceIssue
An actual problem with one file or one known face in a collection.
FontStack
Nonempty, ordered preferences; original named bytes and duplicates are retained.
FontVariantReport
Result of checking a single confirmed logical variant, independent of how many source files provide that same variant.
TextAnchor
A point of the complete measured block, independent of its line alignment.
TextBounds
Explicit text-local finite maxima, independent of the parent’s assigned region.
TextCoordinate
One independently qualified coordinate of an authored text reference.
TextEllipsis
An explicit derived-display program; the original source is never replaced.
TextFit
A font-size program, independent of terminal overflow handling.
TextLayout
Optional text layout instructions. Omitted fields retain owner defaults.
TextOffset
One exact represented finite displacement, not a data coordinate.
TextOrientation
A fixed screen angle, projected data direction or ordered tick-angle program.
TextOverflow
Complete-text presentation and its terminal fit action.
TextPosition
A semantic reference, separate from the selected point of the text block.
TextRotation
One normalized clockwise screen angle, without decimal quantization.
TextVisibility
Explicit text eligibility, independent of scientific ticks and marks.

Enums§

FontDiscovery
Evidence about a requested family’s discovery in the current search scope.
FontScope
Explicit scope of a font support query.
FontStyle
Actual native style of one logical font variant.
FontSupport
Support summary of the confirmed logical variants.
GenericFontFamily
Closed host-resolved generic font preferences, distinct from literal names.
TextAlignment
Physical horizontal alignment within a text owner’s local span.
TextDirection
Base paragraph direction, independent of physical line alignment.
TextElision
Which end of the original source an ellipsis removes.
TextFailure
Terminal action for an actual text-fit miss, never for font/projection errors.
TextFitGrouping
Whether eligible members select separate sizes or one common size.
TextFitPriority
Order complete-content fitting and explicitly permitted abbreviation.
TextOffsetFrame
Coordinate frame for a signed CSS-pixel displacement.
TextOverlap
Whether actual label/annotation ink must avoid its peer owners.
TextRotationMode
How the selected block point relates to a rotation.
TextWeight
Closed text weights used by renderer-owned emphasis.
TextWrapping
Soft-wrap policy; both choices preserve caller-authored mandatory breaks.

Functions§

check_fonts
Check explicitly selected families, or all discovered literal families, using the same discovery, generic resolution and source admission as rendering. This does not perform layout, shaping probes or trial rendering.
check_fonts_with_operation
Check font support using this call’s operation options.
font_families
List the actual selectable literal families discovered on the current host. This performs discovery only, without glyph probes or font admission.
font_families_with_operation
Discover actual font families using this call’s operation options.