home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / DOC / TR.BEGIN / s04 < prev    next >
Text File  |  1994-01-25  |  3KB  |  86 lines

  1. @Section
  2.    @Tag { fonts }
  3.    @Title { Fonts and unusual characters }
  4. @Begin
  5. @PP
  6. This section explains how to gain access to the many different fonts and
  7. unusual characters available with Lout.  We have already seen the
  8. @Code "@I" symbol, which changes the font of the following thing to
  9. {@I Italic}.  Similarly, there is @Code "@B" for {@B Bold}, @Code "@S"
  10. for @S SMALL {@S CAPITALS},
  11. @FootNote {
  12. Owing to problems behind the scenes, if several words are grouped within one
  13. @Code "@S" symbol they will be kept together on one line, so to get small
  14. capitals over several lines it is necessary to apply @Code "@S" to each
  15. word individually.  This does not happen with other font symbols.
  16. }
  17. and @Code "@R" for Roman.
  18. @PP
  19. The @Code "@Font" symbol can be used to get many other fonts (a local
  20. expert should be able to supply the full list):
  21. @ID @Code {
  22. "{ Helvetica Slope } @Font { Hi there }" &0io
  23. }
  24. has result
  25. @ID {
  26. { Helvetica Slope } @Font { Hi there }
  27. }
  28. Each font has a family name, such as Times, Helvetica, or Courier, and a
  29. face name, generally Base, Slope, or Bold.  The fonts that were
  30. called Roman, Italic, and Bold above are Times Base, Times Slope, and
  31. Times Bold.  When changing families the new family and a face must be
  32. specified, but when changing face within a family just the face name is
  33. enough.
  34. @PP
  35. The @Code "@Font" symbol also changes sizes:
  36. @ID @Code {
  37. "+5p @Font Hello"
  38. "-3p @Font Hello"
  39. "12p @Font Hello"
  40. }
  41. has result
  42. @ID {
  43. +5p @Font Hello  -3p @Font Hello  12p @Font Hello
  44. }
  45. with the first Hello 5 points larger than it would have been otherwise,
  46. the second 3 points smaller, and the third in a 12 point font.  There are
  47. 72 points to one inch, and most documents are set in 10 or 12 point.
  48. @PP
  49. There are symbols for some unusual characters that do not appear
  50. on keyboards:
  51. @ID @Tab
  52.     vmargin { 0.5vx }
  53.     @Fmta { @Col @Code A ! @Col B }
  54. {
  55.     @Rowa A { "``"        }  B {    ``        }
  56.     @Rowa A { "''"        }  B {    ''        }
  57.     @Rowa A { "--"        }  B {    --        }
  58.     @Rowa A { "---"        }  B {    ---        }
  59.     @Rowa A { "@Bullet"        }  B {    @Bullet        }
  60.     @Rowa A { "@Star"        }  B {    @Star        }
  61.     @Rowa A { "@ParSym"        }  B {    @ParSym        }
  62.     @Rowa A { "@SectSym"    }  B {    @SectSym    }
  63.     @Rowa A { "@Dagger"        }  B {    @Dagger        }
  64.     @Rowa A { "@DaggerDbl"    }  B {    @DaggerDbl    }
  65.     @Rowa A { "@CDot"        }  B {    @CDot        }
  66.     @Rowa A { "@Sterling"    }  B {    @Sterling    }
  67.     @Rowa A { "@Yen"        }  B {    @Yen        }
  68.     @Rowa A { "@Florin"        }  B {    @Florin        }
  69.     @Rowa A { "@Degree"        }  B {    @Degree        }
  70.     @Rowa A { "@Minute"        }  B {    @Minute        }
  71.     @Rowa A { "@Second"        }  B {    @Second        }
  72.     @Rowa A { "@Lozenge"    }  B {    @Lozenge    }
  73.     @Rowa A { "@Multiply"    }  B {    @Multiply    }
  74.     @Rowa A { "@Divide"        }  B {    @Divide        }
  75.     @Rowa A { "@CopyRight"    }  B {    @CopyRight    }
  76.     @Rowa A { "@Register"    }  B {    @Register    }
  77.     @Rowa A { "@TradeMark"    }  B {    @TradeMark    }
  78.     @Rowa A { "@Date"        }  B {    @Date        }
  79. }
  80. These may be used anywhere.  The Adobe Systems Symbol font has many more such
  81. characters; the Eq equation formatting package [{@Ref kingston92eq}] has
  82. the complete list.  For example, @Code "@Eq { heart }" will give
  83. @Eq { heart }.  Accented characters are also available (see Appendix
  84. {@NumberOf accented}).
  85. @End @Section
  86.