Crate luminance_glyph

source ·
Expand description

A fast text renderer for luminance, powered by glyph_brush.

Initially forked and modified from glow_glyph by hecrj. Many thanks to hecrj!

Modules

Re-exported ab_glyph types.

Structs

Default extra field type. Non-layout data for vertex generation.
Id for a font.
Object allowing glyph drawing, containing cache state. Manages glyph positioning cacheing, glyph draw caching & efficient GPU texture cache updating and re-sizing on demand.
Data used to generate vertex information for a single glyph
Vertex attribute type (representing #repr_ty_name).
A region of the screen.
Vertex attribute type (representing #repr_ty_name).
An object that contains all the info to render a varied section of text. That is one including many parts with differing fonts/scales/colors bowing to a single layout.
A positioned glyph with info relating to the SectionText from which it was derived.
Text to layout together using a font & scale.
Vertex attribute type (representing #repr_ty_name).
Vertex attribute type (representing #repr_ty_name).
SectionText + extra.
Vertex attribute type (representing #repr_ty_name).

Enums

Built-in linebreaking logic.
Describes horizontal alignment preference for positioning & bounds.
Built-in GlyphPositioner implementations.
Indicator that a character is a line break, soft or hard. Includes the offset (byte-index) position.
Describes vertical alignment preference for positioning & bounds. Currently a placeholder for future functionality.

Traits

Common glyph layout logic.
Logic to calculate glyph positioning using Font, SectionGeometry and SectionText.
Producer of a LineBreak iterator. Used to allow to the Layout to be line break aware in a generic way.

Functions

Helper function to generate a generate a transform matrix.

Type Definitions

SectionGlyph iterator.