home *** CD-ROM | disk | FTP | other *** search
- gadutil.library/GU_TextWidth gadutil.library/GU_TextWidth
-
- NAME
- GU_TextWidth -- Calculate the pixel length of a text string.
-
- SYNOPSIS
- textwidth = GU_TextWidth(string, textattr)
- D0 A0 A1
-
- ULONG GU_TextWidth(STRPTR, struct TextAttr *);
-
- FUNCTION
- Calculate the length of the text, using the specified font. This
- function will open the required font, if it isn't opened before.
-
- INPUTS
- string - NULL terminated text to calculate width of.
-
- textattr - a filled in TextAttr structure. Only the IText and
- ITextFont fields of the structure have to be filled in.
-
- RESULT
- textwidth - pixel length of the text
-