FontCharacter

From Crumbled World Wiki
Revision as of 14:22, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:FontCharacterExampleCode}} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec2 |getOffsetToNextChar() |Distance to the next character including character spacing. |- |Vec2 |getLocalOffset() |Offset when of render position to render correctly example, "agh". This character has all defferent start location. |- |Vec2 |getSize() |C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FontCharacterExampleCode

Functions

return function description
Vec2 getOffsetToNextChar() Distance to the next character including character spacing.
Vec2 getLocalOffset() Offset when of render position to render correctly example, "agh".

This character has all defferent start location.

Vec2 getSize() Character render size.
Vec2 getUvCoord() Max uv coordinated fot this cahracter.
Texture getTexture() Get a texture to be used during render.