home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilsm / mkdrawf / Examples / src / Text < prev    next >
Encoding:
Text File  |  1995-04-21  |  1.1 KB  |  64 lines

  1. FontTable {
  2.   1 "Trinity.Medium"
  3.   2 "Trinity.Medium.Italic"
  4.   3 "Homerton.Bold"
  5.   4 "Homerton.Medium"
  6. }
  7.  
  8. Text {
  9.   StartAt 100 100
  10.   Size 20 20
  11.   Style 1
  12.   Text "Trinity"
  13. }
  14.  
  15. Text {
  16.   StartAt 100 200
  17.   Size 14 14
  18.   Style Font "Trinity.Medium.Italic" # see whether this works
  19.   Text "Trinity Italic"
  20. }
  21.  
  22. Text {
  23.   StartAt 100 400
  24.   Size 40 40
  25.   Style Font "Homerton.bOLD" # case doesn't matter
  26.   Colour r255g0b0
  27.   Text "Homerton BOLD"
  28. }
  29.  
  30. # show the box in which the remaining items are centred
  31. Path {
  32.   Width 0.25
  33.   OutlineColour r30g80b220
  34.   Style { Dash { 4 2 1 2 } }
  35.   Move 250 250
  36.   Line 350 250
  37.   Line 350 380
  38.   Line 250 380
  39.   Close
  40. }
  41.  
  42. Text {
  43.   Style Font "Trinity.Medium"
  44.   Size 20 20
  45.   CentreIn 250 250 350 380
  46.   Text "Middle"
  47. }
  48.  
  49. Text {
  50.   Style Font "Trinity.Medium.Italic"
  51.   Size 20 20
  52.   HCentreIn 250 250 350 380
  53.   StartAt 250 250     # x coord of this will be ignored
  54.   Text "Bottomqgf"    # descenders to show that baseline is at given pos
  55. }
  56.  
  57. XfText {
  58.   Style Font "Homerton.Medium"
  59.   Size 10 10
  60.   CentreIn 250 250 350 380
  61.   Matrix Cos -1 Sin -1 Sin 1 Cos -1 0 0    # rotate clockwise by 1 radian
  62.   Text "wossnamewossnamewossname"
  63. }
  64.