fg_swlength()

Win32 DirectX Fastgraph/Light

Prototype

double fg_swlength (char *string, int n);

Function fg_swlength (ByVal string As String, ByVal n As Long) As Double

function fg_swlength (string : string; n : integer) : real;

Description

The fg_swlength() function computes the length of a string of software characters.

Parameters

string is the sequence of characters for which to compute the length. It may contain special operators used by the fg_swchar() and fg_swtext() functions.

n is the number of characters in string, including any special operator characters.

Return value

The length of string, in 2D world space units.

Restrictions

Before using this function, you must use fg_initw() and fg_setworld() to establish a 2D world space coordinate system.

See also

fg_initw(), fg_setangle(), fg_setratio(), fg_setsize(), fg_setsizew(), fg_setworld(), fg_swchar(), fg_swtext()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.