Movatterモバイル変換


[0]ホーム

URL:


Docs.rs

Cratewgpu_glyph

Source
Expand description

A fast text renderer forwgpu. Powered byglyph_brush.

Modules§

ab_glyph
Re-exported ab_glyph types.

Structs§

Extra
Defaultextra field type. Non-layout data for vertex generation.
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 aGlyphBrush.
OwnedSection
OwnedText
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.
SectionGeometry
SectionGlyph
A positioned glyph with info relating to theSectionText from which it was derived.
SectionText
Text to layout together using a font & scale.
Text
SectionText + extra.

Enums§

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

Traits§

GlyphCruncher
Common glyph layout logic.
GlyphPositioner
Logic to calculate glyph positioning usingFont,SectionGeometry andSectionText.
LineBreaker
Producer of aLineBreak 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§

SectionGlyphIter
SectionGlyph iterator.

[8]ページ先頭

©2009-2025 Movatter.jp