[−][src]Crate wgpu_glyph
A fast text renderer for wgpu
. Powered by glyph_brush
.
Modules
rusttype | Re-exported rusttype types. |
Structs
Font | A single font. This may or may not own the font data. |
FontId | Id for a font |
GlyphBrush | Object allowing glyph drawing, containing cache state. Manages glyph positioning cacheing, glyph draw caching & efficient GPU texture cache updating and re-sizing on demand. |
GlyphBrushBuilder | Builder for a |
OwnedSectionText | |
OwnedVariedSection | |
Point | A point in 2-dimensional space, with each dimension of type |
PositionedGlyph | A glyph augmented with positioning and scaling information. You can query such a glyph for information that depends on the scale and position of the glyph. |
Rect | A rectangle, with top-left corner at |
Scale | Defines the size of a rendered face of a font, in pixels, horizontally and
vertically. A vertical scale of |
Section | An object that contains all the info to render a section of text. |
SectionGeometry | |
SectionText | |
VariedSection | 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. |
Enums
BuiltInLineBreaker | Built-in linebreaking logic. |
HorizontalAlign | Describes horizontal alignment preference for positioning & bounds. |
Layout | Built-in |
LineBreak | Indicator that a character is a line break, soft or hard. Includes the offset (byte-index) position. |
SharedBytes |
|
VerticalAlign | Describes vertical alignment preference for positioning & bounds. Currently a placeholder for future functionality. |
Traits
FontMap | |
GlyphCruncher | Common glyph layout logic. |
GlyphPositioner | Logic to calculate glyph positioning using |
LineBreaker | Producer of a |
Type Definitions
PositionedGlyphIter |
|