[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

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.                                    |
 |_______________________________________________________________________|