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


    NAME
        IntuiTextLength -- Return the length (pixel-width) of an intuitext.

    SYNOPSIS
        Length = IntuiTextLength( IText )
        D0                        A0

        long intuitextlength( struct intuitext * );

    FUNCTION
        This routine accepts a pointer to an instance of an intuitext structure,
        and returns the length (the pixel-width) of the string which that
        instance of the structure represents.

        NOTE: if the Font pointer of your intuitext structure is set to null,
        you'll get the pixel-width of your text in terms of the current system
        default font.  You may wish to be sure that the field IText->ITextFont
        for 'default font' text is equal to the Font field of the screen it is
        being measured for.

    INPUTS
        IText = pointer to an instance of an intuitext structure

    RESULT
        Returns the pixel-width of the text specified by the intuitext data

    BUGS
        Would do better to take a rastport as argument, so that a null in
        the Font pointer would lead automatically to the font for the
        intended target rastport, rather than the system default font.

    SEE ALSO
        openscreen()