procedure GenerateDrawScript(
const aCharSet : TApxKeyString; const aText : string);
Generates a draw script from a string.
The emulator, when it needs to display text on the terminal window, will separate out the text to be drawn into strings from different character sets. For each individual string, it will call the GenerateDrawScript method of its internal character set mapping object to generate a series of drawing commands that can be used to draw the text on the screen. Each command will be of the form "switch to font X, write string Y." The emulator then reads the commands one at a time using the GetNextDrawCommand method, and draws the text in the required font.
If GenerateDrawScript is called before all of the commands from the previous script have been read, the previous commands are destroyed and will no longer be available.
The aCharSet parameter is the name of the character set. aText is the string of characters that have to be drawn using the given character set. The GenerateDrawScript method will work out which fonts and glyphs are required to draw the characters and generate a list of drawing commands that, when executed one after the other, will produce the required effect.
See also: GetNextDrawCommand