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


   NAME
        NewScaledDiskFont -- Create a DiskFont scaled from another. (V36)

   SYNOPSIS
        header = NewScaledDiskFont(srcFont, destTextAttr)
        D0                         A0       A1

        struct diskfontheader *newscaleddiskfont( struct textfont *,
                struct ttextattr * );

   INPUTS
        srcFont - the font from which the scaled font is to be
            constructed.
        destTextAttr - the desired attributes for the new scaled
            font.  This may be a structure of type textattr or
            ttextattr.

   RESULT
        header - a pointer to a diskfontheader structure.  this is not
                being managed by the diskfont.library, however.

   NOTES
        o   This function may use the blitter.
        o   Fonts containing characters that render wholly outside
            the character advance cell are currently not scalable.
        o   The font, and memory allocated for the scaled font can
            can be freed by calling stripfont() on the font,
            and then calling unloadseg() on the segment created
            by this function.

            Both the textfont structure, and segment pointer are contained
            within the diskfontheader struct.  the diskfontheader structure
            will also be freed as part of the unloadseg() call.
            stripfont() is a new graphics.library call as of v36.