Following the justification character you can name a font and color. The format for this is:
|font name|font size|font attributes|red-green-blue|
• | font name is the name of a font such as "Times New Roman". |
• | font size is the size of the font in points. |
• | font attributes can be any of |
• | B for bold. |
• | I for italic |
• | U for underline |
• | S for strike-through |
• | red-green-blue is the color specification as an RGB color. Each of red, green and blue should be a value between 0 and 255 inclusive. |
If you do not specify all components of the fonts and color whatever SCREENFONT you may have set will be used to fill in the remaining components. Thus the definition:
:SCREEN TEXT
RECTANGLE,"",10,10,80,80
TEXTONLY," clear center ",50,5,0,10,C
TEXTONLY," opaque bottom center ",50,85,0,10,c
TEXTONLY,"right",90,50,0,0,R
TEXTONLY,"left",10,50,0,0,L
TEXTONLY,"big",40,20,0,0,L||22|
TEXTONLY,"tiny",40,40,0,0,L||6|
TEXTONLY,"bold",40,50,0,0,L|||B|
TEXTONLY,"script",40,60,0,0,L|Symbol|14||0-0-0
Will generate the output:
NOTEYou can specify a font by clicking on the Font button in the Control Definition dialog.
The Text Editor also contains a function to insert font and color names so that you can choose the font you want more accurately. To use this type C| for justification and then invoke Edit>Insert>Font or click on the Font button on the status bar. A font selection dialog will appear. Select the font and click OK.