home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / biz / misc / banker / docs / font_engine.doc < prev    next >
Text File  |  1993-12-16  |  2KB  |  53 lines

  1. NOTE: THIS FILE IS AN EXCERPT FROM THE FILE MUI_text.doc, in the MUI
  2. developer's distribution.
  3.  
  4. ----------------------------------------------------------------------
  5.  
  6.  
  7.     Whenever MUI prints strings, they may contain some special
  8.     character sequences defining format, color and style of the text.
  9.  
  10.     '\n'     Start a new line. With this character you can e.g. create
  11.          multi line buttons.
  12.  
  13.     ESC -    Disable text engine, following chars will be printed
  14.              without further parsing.
  15.  
  16.     ESC u    Set the soft style to underline.
  17.  
  18.     ESC b    Set the soft style to bold.
  19.  
  20.     ESC i    Set the soft style to italic.
  21.  
  22.     ESC n    Set the soft style back to normal.
  23.  
  24.     ESC <n>  Use pen number n (0..9) as front pen. n must be a valid
  25.          DrawInfo pen as specified in "intuition/screens.h".
  26.  
  27.     ESC c    Center current (and following) line(s).
  28.          This sequence is only valid at the beginning of a
  29.          string or after a newline character.
  30.  
  31.     ESC r    Right justify current (and following) line(s).
  32.          This sequence is only valid at the beginning of a
  33.          string or after a newline character.
  34.  
  35.     ESC l    Left justify current (and following) line(s).
  36.          This sequence is only valid at the beginning of a
  37.          string or after a newline character.
  38.  
  39.     ESC I[s] Draw MUI image with specification <s>.
  40.  
  41.     Note:     These rules apply to all MUI strings, not only to
  42.          a text objects contents. You can e.g. format the
  43.              columns of a listview or include images in a cycle
  44.              gadgets entries.
  45.  
  46.     EXAMPLE
  47.     ...
  48.     MUIA_Text_Contents, "\33c\33bMUI\33n\nis magic"
  49.     ...
  50.  
  51.     would look like     |    MUI   |  <-- bold
  52.                         | is magic |  <-- normal
  53.