FNTGetTexture

Syntax

#include <revolution/fnt.h>

char* FNTGetTexture(
    const FNTHeader* font,
    const char* string,
    FNTTexture* tex );

Arguments

font Pointer to the font data buffer.
Initialization using FNTConstruct or FNTStreamingConstruct is required.
string String.
tex Pointer to a structure that stores font texture information.

Return Values

Pointer to the next character in string.

Description

Gets the font texture information of the first text character in the specified string.
The pointer to the texture image sheet, the position of the font in the sheet, etc. are stored as font texture information.
The texel width of the first character is stored in tex->charWidth.

The character encoding method can be set using FNTSetEncoding.

See Also

FNTSetEncoding, FNTGetTextureFormat

Revision History

2006/10/01 Initial version.


CONFIDENTIAL