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. RESULT textwidth - pixel length of the text
Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.