GNU Info

Info Node: (groff)Changing Fonts

(groff)Changing Fonts


Next: Font Families Prev: Fonts Up: Fonts
Enter node , (file) or (file)node

Changing Fonts
--------------

 - Request: .ft [font]
 - Escape: \fF
 - Escape: \f(FN
 - Escape: \f[FONT]
     The `ft' request and the `\f' escape change the current font to
     FONT (one-character name F, two-character name FN).

     If FONT is a style name (as set with the `sty' request or with the
     `styles' command in the `DESC' file), use it within the current
     font family (as set with the `fam' request or with the `family'
     command in the `DESC' file).

     With no argument or using `P' as an argument, `.ft' switches to
     the previous font.  Use `\fP' or `\f[P]' to do this with the
     escape.

     Fonts are generally specified as upper-case strings, which are
     usually 1 to 4 characters representing an abbreviation or acronym
     of the font name.  This is no limitation, just a convention.

     The example below produces two identical lines.


          eggs, bacon,
          .ft B
          spam
          .ft
          and sausage.
          
          eggs, bacon, \fBspam\fP and sausage.

     Note: Font Positions, for an alternative syntax.

 - Request: .ftr f [g]
     Translate font F to font G.  Whenever a font named F is referred
     to in a `\f' escape sequence, or in the `ft', `ul', `bd', `cs',
     `tkf', `special', `fspecial', `fp', or `code' requests, font G is
     used.  If G is missing or equal to F the translation is undone.


automatically generated by info2www version 1.2.2.9