OSInitFont

Syntax

#include <revolution/os.h>

#define OS_FONT_SIZE_ANSI       (288 + 131072)
#define OS_FONT_SIZE_SJIS       (3840 + 1179648)

BOOL OSInitFont(OSFontHeader* fontData);

Arguments

fontData Pointer to the font data buffer that has size OS_FONT_SIZE_*, which depends on the font encoding. Must be 32-byte aligned.

Return Values

TRUE if successfully completes; FALSE if font data is not available for use.

Description

Loads and expands ROM font data. The OSInitFont function should be used in conjunction with the OSGetFontTexture function. To conserve main memory, use the OSLoadFont function instead of OSInitFont.

See Also

Font Functions
OSGetFontTexture

Revision History

2006/03/01 Initial version.


CONFIDENTIAL