[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

To determine the pixel length of a given IntuiText string, call the
IntuiTextLength() function.

    LONG IntuiTextLength( struct IntuiText *iText );

Set the iText argument to point to the IntuiText structure whose length is
to be found.  This function will return the length of the iText text
string in pixels.  Note that if the ITextFont field of the given IntuiText
is set to NULL, or Intuition cannot access the specified font, then
GfxBase->DefaultFont will be used in determining the length of the text.
This may not be the same as the RastPort font with which the text would be
printed.


[Back to Amiga Developer Docs]