citro2d
|
Font loading and management. More...
#include "base.h"
Go to the source code of this file.
Typedefs | |
typedef struct C2D_Font_s * | C2D_Font |
Functions | |
C2D_Font | C2D_FontLoad (const char *filename) |
Load a font from a file. More... | |
C2D_Font | C2D_FontLoadFromMem (const void *data, size_t size) |
Load a font from memory. More... | |
C2D_Font | C2D_FontLoadFromFD (int fd) |
Load a font from file descriptor. More... | |
C2D_Font | C2D_FontLoadFromHandle (FILE *f) |
Load font from stdio file handle. More... | |
C2D_Font | C2D_FontLoadSystem (CFG_Region region) |
Load corresponding font from system archive. More... | |
void | C2D_FontFree (C2D_Font font) |
Free a font. More... | |
void | C2D_FontSetFilter (C2D_Font font, GPU_TEXTURE_FILTER_PARAM magFilter, GPU_TEXTURE_FILTER_PARAM minFilter) |
Set a font's texture filter. More... | |
int | C2D_FontGlyphIndexFromCodePoint (C2D_Font font, u32 codepoint) |
Find the glyph index of a codepoint, or returns the default. More... | |
charWidthInfo_s * | C2D_FontGetCharWidthInfo (C2D_Font font, int glyphIndex) |
Get character width info for a given index. More... | |
void | C2D_FontCalcGlyphPos (C2D_Font font, fontGlyphPos_s *out, int glyphIndex, u32 flags, float scaleX, float scaleY) |
Calculate glyph position of given index. More... | |
FINF_s * | C2D_FontGetInfo (C2D_Font font) |
Get the font info structure associated with the font. More... | |
Font loading and management.