SSBM Decomp
Loading...
Searching...
No Matches
OSFont.h File Reference
#include <dolphin/types.h>

Go to the source code of this file.

Data Structures

struct  OSFontHeader

Macros

#define OS_FONT_ENCODE_ANSI   0u
#define OS_FONT_ENCODE_SJIS   1u
#define OS_FONT_SIZE_ANSI   (288 + 131072)
#define OS_FONT_SIZE_SJIS   (3840 + 1179648)
#define OS_FONT_ROM_SIZE_ANSI   0x03000
#define OS_FONT_ROM_SIZE_SJIS   0x4D000

Functions

u16 OSGetFontEncode (void)
BOOL OSInitFont (OSFontHeader *fontData)
u32 OSLoadFont (OSFontHeader *fontData, void *temp)
char * OSGetFontTexture (char *string, void **image, s32 *x, s32 *y, s32 *width)
char * OSGetFontWidth (char *string, s32 *width)
char * OSGetFontTexel (char *string, void *image, s32 pos, s32 stride, s32 *width)

Macro Definition Documentation

◆ OS_FONT_ENCODE_ANSI

#define OS_FONT_ENCODE_ANSI   0u

◆ OS_FONT_ENCODE_SJIS

#define OS_FONT_ENCODE_SJIS   1u

◆ OS_FONT_SIZE_ANSI

#define OS_FONT_SIZE_ANSI   (288 + 131072)

◆ OS_FONT_SIZE_SJIS

#define OS_FONT_SIZE_SJIS   (3840 + 1179648)

◆ OS_FONT_ROM_SIZE_ANSI

#define OS_FONT_ROM_SIZE_ANSI   0x03000

◆ OS_FONT_ROM_SIZE_SJIS

#define OS_FONT_ROM_SIZE_SJIS   0x4D000

Function Documentation

◆ OSGetFontEncode()

u16 OSGetFontEncode ( void )

◆ OSInitFont()

BOOL OSInitFont ( OSFontHeader * fontData)

◆ OSLoadFont()

u32 OSLoadFont ( OSFontHeader * fontData,
void * temp )

◆ OSGetFontTexture()

char * OSGetFontTexture ( char * string,
void ** image,
s32 * x,
s32 * y,
s32 * width )

◆ OSGetFontWidth()

char * OSGetFontWidth ( char * string,
s32 * width )

◆ OSGetFontTexel()

char * OSGetFontTexel ( char * string,
void * image,
s32 pos,
s32 stride,
s32 * width )