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


   NAME
        FontExtent -- get the font attributes of the current font (V36)

   SYNOPSIS
        FontExtent(font, fontExtent)
                   A0    A1

        void FontExtent(struct textfont *, struct textextent *);

   FUNCTION
        This function fills the text extent structure with a bounding
        (i.e. maximum) extent for the characters in the specified font.

   INPUTS
        font       - the textfont from which the font metrics are extracted.
        fontExtent - the textextent structure to be filled.

   RESULT
        fontExtent is filled.

   NOTES
        The textfont, not the rastport, is specified -- unlike
        textextent(), effect of algorithmic enhancements is not
        included, nor does te_Width include any effect of
        rp_TxSpacing.  The returned te_Width will be negative only
        when FPF_REVPATH is set in the tf_Flags of the font -- the
        effect of left-moving characters is ignored for the width of
        a normal font, and the effect of right-moving characters is
        ignored if a REVPATH font.  These characters will, however,
        be reflected in the bounding extent.

   SEE ALSO
        textextent()  graphics/text.h