FNTGetWidth

Syntax

#include <revolution/fnt.h>

char* FNTGetWidth(
    const FNTHeader* font,
    const char* string,
    s32* width );

Arguments

font Pointer to the font data buffer.
Initialization using FNTConstruct or FNTStreamingConstruct is required.
string String.
width Pointer to the variable storing the texel width of the first character of the specified string.

Return Values

Pointer to the next character in string.

Description

Gets the texel width of the first text character in the specified string.

The character encoding method can be set using FNTSetEncoding.

See Also

FNTSetEncoding

Revision History

2006/10/01 Initial version.


CONFIDENTIAL