Skip to main content

Interface: GlyphQuad

Defined in: text/components/text-mesh-component.ts:11

A single shaped glyph's quad: structurally identical to a NineSliceRegion (an offset, a size, and a UV rect into an atlas texture), so it can be pushed through the same render-command machinery (see pushTextRenderCommands in render-system.ts).

Properties​

offset​

offset: Vector2

Defined in: text/components/text-mesh-component.ts:16

This glyph's center, as an offset from the text block's anchor point, in world units, Y-up.


size​

size: Vector2

Defined in: text/components/text-mesh-component.ts:19

This glyph's rendered size, in world units.


uvOffset​

uvOffset: Vector2

Defined in: text/components/text-mesh-component.ts:22

The top-left corner of this glyph's texture rect in the atlas, 0 to 1.


uvScale​

uvScale: Vector2

Defined in: text/components/text-mesh-component.ts:25

The width/height of this glyph's texture rect in the atlas, 0 to 1.