FontResource(filepath, in_ram)
Object that holds information about a font that can be used in Text2DNode to display text. The file needs to be a 16-bit RGB565 .bmp file consisting of characters all of the same height. Widths of the characters are marked by any alternating colors in the bottom row of pixels of the bitmap. Characters should be in one large row.
Parameters:
filepath
[value: string, type: string]
in_ram
[value: True of False (False by default), type: boolean]
Attributes:
texture
[value: TextureResource, type: TextureResource]
widths
[value: bytearray (read-only), type: bytearray]
offsets
[value: bytearray (read-only), type: bytearray]
height
[value: any (read-only), type: int]
file: src/resources/engine_font_resource.c