Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strwidth(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



strwidth(3G)                                                      strwidth(3G)



NAME
     strwidth, lstrwidth - returns the width of the specified text string

C SPECIFICATION
     long strwidth(str)
     String str;

     long lstrwidth(type,str)
     long type;
     void *str;

PARAMETERS
     type      expects the type of this string.  See the man page for charstr
               for a description of the type argument.

     str       expects the pointer to the string to be measured.

DESCRIPTION
     strwidth and lstrwidth return the width of a text string in pixels, using
     the character spacing parameters of the current raster font.  These
     functions are useful when doing a simple mapping from screen space to
     world space.

     Undefined characters have zero width.

SEE ALSO
     charstr, deflfont, defrasterfont, getlwidth, lcharstr, mapw, mapw2

NOTE
     These routines are available only in immediate mode.

























                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026