The following are brief descriptions of the Graphics and Diskfont library functions that deal with text. See the Amiga ROM Kernel Reference Manual: Includes and Autodocs for details on each function call. Table 29-1: Graphics Library Text Functions _______________________________________________________________________ | | | Function Description | |=======================================================================| | Text() Render a text string to a RastPort. | | SetFont() Set a RastPort's font. | | AskFont() Get the TextAttr for a RastPort's font. | | OpenFont() Open a font currently in the system font list. | | CloseFont() Close a font. | | AddFont() Add a font to the system list. | | RemFont() Remove a font from the system list. | | StripFont() Remove the tf_Extension from a font (V36). | | WeighTAMatch() Get a measure of how well two fonts match (V36). | |-----------------------------------------------------------------------| | ClearScreen() Clear RastPort from the current position to the end | | of the RastPort. | | ClearEOL() Clear RastPort from the current position to the end | | of the line. | | AskSoftStyle() Get the soft style bits of a RastPort's font. | | SetSoftStyle() Set the soft style bits of a RastPort's font. | | TextLength() Determine the horizontal raster length of a text | | string using the current RastPort settings. | | TextExtent() Determine the raster extent (along the X and Y axes) | | of a text string using the current RastPort settings | | (V36). | | FontExtent() Fill in a TextExtent structure with the bounding box | | for the characters in the specified font (V36). | | TextFit() Count the number of characters in a given string | | that will fit into a given bounds, using the current | | RastPort settings (V36). | |_______________________________________________________________________| Table 29-2: Diskfont Library Text Functions _______________________________________________________________________ | | | Function Description | |=======================================================================| | AvailFonts() Inquire which fonts are available from disk | | and/or memory. | | NewFontContents() Create a FontContents image for a font. | | DisposeFontContents() Free the result from NewFontContents(). | | NewScaledDiskFont() Create a DiskFont scaled from another font | | (V36). | | OpenDiskFont() Open a font, loading it from disk if | | necessary. | |_______________________________________________________________________|