9 typedef struct C2D_Font_s* C2D_Font;
62 void C2D_FontSetFilter(C2D_Font font, GPU_TEXTURE_FILTER_PARAM magFilter, GPU_TEXTURE_FILTER_PARAM minFilter);
87 void C2D_FontCalcGlyphPos(C2D_Font font, fontGlyphPos_s* out,
int glyphIndex, u32 flags,
float scaleX,
float scaleY);
C2D_Font C2D_FontLoadSystem(CFG_Region region)
Load corresponding font from system archive.
void C2D_FontSetFilter(C2D_Font font, GPU_TEXTURE_FILTER_PARAM magFilter, GPU_TEXTURE_FILTER_PARAM minFilter)
Set a font's texture filter.
C2D_Font C2D_FontLoad(const char *filename)
Load a font from a file.
void C2D_FontFree(C2D_Font font)
Free a font.
void C2D_FontCalcGlyphPos(C2D_Font font, fontGlyphPos_s *out, int glyphIndex, u32 flags, float scaleX, float scaleY)
Calculate glyph position of given index.
C2D_Font C2D_FontLoadFromHandle(FILE *f)
Load font from stdio file handle.
C2D_Font C2D_FontLoadFromMem(const void *data, size_t size)
Load a font from memory.
FINF_s * C2D_FontGetInfo(C2D_Font font)
Get the font info structure associated with the font.
Basic citro2d initialization and drawing API.
charWidthInfo_s * C2D_FontGetCharWidthInfo(C2D_Font font, int glyphIndex)
Get character width info for a given index.
int C2D_FontGlyphIndexFromCodePoint(C2D_Font font, u32 codepoint)
Find the glyph index of a codepoint, or returns the default.
C2D_Font C2D_FontLoadFromFD(int fd)
Load a font from file descriptor.