FontCharacter

From Crumbled World Wiki

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.