OSLoadFont

Syntax

#include <revolution/os.h>

// For OSLoadFont(*, temp)
#define OS_FONT_ROM_SIZE_ANSI   12288   // 0x03000
#define OS_FONT_ROM_SIZE_SJIS   315392  // 0x4D000

// For OSLoadFont(fontData, *)
#define OS_FONT_DATA_SIZE_ANSI  65824
#define OS_FONT_DATA_SIZE_SJIS  593636

u32 OSLoadFont(OSFontHeader* fontData, void* temp);

Arguments

fontData Pointer to the font data buffer with a size of OS_FONT_DATA_SIZE_*, which depends on the font encoding. Must be 32-byte aligned.
temp Pointer to the temporary buffer used by the OSLoadFont function. The size must be OS_FONT_ROM_SIZE_*. This temporary buffer can be released after the function completes. Must be 32-byte aligned.

Return Values

Font data size in bytes. Returns zero if font data is unavailable.

Description

The OSLoadFont function loads a ROM font. This low-level font function must be used together with OSGetFontTexel.

See Also

Font Functions, OSGetFontTexel

Revision History

2006/03/01 Initial version.


CONFIDENTIAL