fgf_width() (Fastgraph/Fonts)

Win32 DirectX Fastgraph/Light

Prototype

int fgf_width (char *string, int length);

Function fgf_width (ByVal string As String, ByVal length As Long) As Long

function fgf_width (string : string; length : integer) : integer;

Description

The fgf_width() function determines the width in pixels of a given character string when displayed in the current font.

Parameters

string is the character string for which the width is to be computed.

length is the number of characters to consider in string, including any characters that control color selection and underlining. It must be less than or equal to the physical string length.

Return value

The width in pixels of string when displayed in the current font. If there is no current font, fgf_width() returns zero.

Restrictions

none

See also

fgf_height(), fgf_kerning()

Examples

FGFW5, FGFW6

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.