loadFont

fnFontId loadFont(IStr path, int size, int runeSpacing = - 1, int lineSpacing = - 1, IStr32 runes = "", IStr file = __FILE__, Sz line = __LINE__)

Loads a font file (TTF) with default filter and wrap modes. Uses the assets path unless the input starts with `/` or `\`, or isUsingAssetsPath is false. Path separators are normalized to the platform's native format.

fnFontId loadFont(const(ubyte)[] memory, int size, int runeSpacing = - 1, int lineSpacing = - 1, IStr32 runes = "", IStr ext = ".ttf", IStr file = __FILE__, Sz line = __LINE__)

Loads a font file (TTF) from memory with default filter and wrap modes.

fnFontId loadFont(TextureId texture, int tileWidth, int tileHeight, IStr file = __FILE__, Sz line = __LINE__)

Loads a font file (TTF) from a texture with default filter and wrap modes. The input texture will be invalidated after loading.