A font can be specified for individual drawing statements in a pattern definition. For example, the following pattern definition specifies a font for a particular drawing statement:
pattern Text is
font "esl caps" text center "Hello"
text align "Good Morning"
Whenever this pattern is referenced, the text string, "HELLO", is displayed in the esl caps font. Any drawing statement that specifies a text string without a font specification, such as "GOOD MORNING" in the above example, is displayed in the default font for the program. If no default program font is specified, the esl mono font is used.
Note that a font cannot be specified in a pattern reference.