Glyph
Constructor
There is no constructer, use create_font, which returns a list of characters, each with its own glyph.
Properties
Description
advance_x
The horizontal distance to move the cursor after drawing this glyph (in pixels or font units).
offset_x
Horizontal offset to apply when rendering the glyph bitmap.
offset_y
Vertical offset to apply when rendering the glyph bitmap.
width
Width of the glyph bitmap in pixels.
height
Height of the glyph bitmap in pixels.
u0
Left coordinate of the glyph in the texture atlas.
v0
Top coordinate of the glyph in the texture atlas.
u1
Right coordinate of the glyph in the texture atlas.
v1
Bottom coordinate of the glyph in the texture atlas.
texture
Texture resource containing the glyph image.
Glyph is read-only!
Last updated