getFontID

Script::getFontID

Loads a font in the Graphics Module and returns a unique identifier to this font.

Declaration

FontID getFontID(const Font& font);

Parameters

Name

Type

Description

font

const Font&

Font to load in the Graphics Module.

Returns

A unique FontID identifier for the font.

If the font could not be loaded, the returned value is NTSHENGN_FONT_UNKNOWN.