GetFontCharWidth

Retrieves character width.

Synopsis

int32 GetFontCharWidth (FontDescriptor *fDesc, int32 character)

Description

Retrieves the width of the specified character in the font. The return value is the width of the character (not including intercharacter spacing).

Arguments

fDesc
Pointer to a FontDescriptor structure.
character
The specific character you're looking for.

Return Value

Width of the character; zero if the character is not present in the font.

Associated Files

lib3do.lib, fontlib.h

See Also

GetFontStringWidth