Expand description
A fast text renderer forwgpu
. Powered byglyph_brush
.
Modules§
- ab_
glyph - Re-exported ab_glyph types.
Structs§
- Extra
- Default
extra
field type. Non-layout data for vertex generation. - FontId
- Id for a font.
- Glyph
Brush - Object allowing glyph drawing, containing cache state. Manages glyph positioning cacheing,glyph draw caching & efficient GPU texture cache updating and re-sizing on demand.
- Glyph
Brush Builder - Builder for a
GlyphBrush
. - Owned
Section - Owned
Text - Region
- A region of the screen.
- Section
- An object that contains all the info to render a varied section of text. That is one includingmany parts with differing fonts/scales/colors bowing to a single layout.
- Section
Geometry - Section
Glyph - A positioned glyph with info relating to the
SectionText
from which it was derived. - Section
Text - Text to layout together using a font & scale.
- Text
SectionText
+ extra.
Enums§
- Built
InLine Breaker - Built-in linebreaking logic.
- Horizontal
Align - Describes horizontal alignment preference for positioning & bounds.
- Layout
- Built-in
GlyphPositioner
implementations. - Line
Break - Indicator that a character is a line break, soft or hard. Includes the offset (byte-index)position.
- Vertical
Align - Describes vertical alignment preference for positioning & bounds. Currently a placeholderfor future functionality.
Traits§
- Glyph
Cruncher - Common glyph layout logic.
- Glyph
Positioner - Logic to calculate glyph positioning using
Font
,SectionGeometry
andSectionText
. - Line
Breaker - Producer of a
LineBreak
iterator. Used to allow to theLayout
to be line break aware in a generic way.
Functions§
- orthographic_
projection - Helper function to generate a generate a transform matrix.
Type Aliases§
- Section
Glyph Iter SectionGlyph
iterator.