1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---@meta
---@class (exact) Font: FontMethods
---@class FontClass: FontMethods
local module =
---@class FontMethods
local methods =
---Create a new empty font.
---@param size number
---@param pixelated boolean
---@return Font
---@nodiscard
---Load and rasterize a font from a TTF file.
---@param path string
---@param size number
---@param pixelated boolean
---@param chars string?
---@return Font
---@nodiscard
---The font's baked size.
---@param self Font
---@return number
---@nodiscard
---If the font is pixelated.
---@param self Font
---@return number
---@nodiscard
---Set the character's render glyph.
---@param self Font
---@param chr string
---@param subtexture SubTexture?
---@param advance number
-- ---Get the glyph subtexture and advance for the character.
-- ---@param self Font
-- ---@param chr string
-- ---@return SubTexture?
-- ---@return number
-- ---@nodiscard
-- function methods.glyph(self, chr) end
---Set the kerning when rendering from one character to another.
---@param self Font
---@param left string
---@param right string
---@param kerning number
---Get the kerning when rendering from one character to another.
---@param self FontMethods
---@param left string
---@param right string
---@return number
---@nodiscard
return module