formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Graphics

fzrt_text_width

Description

Gets the width of a string of text. This will return the width of the specified string or substring using the current font family, size, style selected into the current port. The text string does not need to be null terminated.

Plugin Prototype

short fzrt_text_width(

const void *

textBuf,

short

firstByte,

short

byteCnt )

Parameters

textBuf [Input]

buffer containing text to measure

firstByte [Input]

index into buffer pointing to the first character of string

byteCnt [Input]

length of string in bytes to read from buffer

Returns

Width of string if drawn to current port.

Availability

5.0.0.0

Function Set

fz_fzrt_graf_fset


Defined in

fzrt_api.h