DescriptionDRAWTEXT StartX, StartY, EndX, EndY, Text string, Color code
Fills a rectangular space with vector-drawn text. (Not quite the same as GPUTCHR, which uses scale factors as arguments.)
The new key contains the DEF block for drawing text, the vector data of the default font, and the algorithm used to create the vector data. You can use the algorithm to create your own font data to use with this.
You can italicize, strike, and underline by introducing [I/]...[/I], [S/]...[/S], and [U/]...[/U] within your text. Example, DRAWTEXT 5,5,60,10,"[U/]Hello, world![/U]",#WHITE.
You can also use any combination of strikes, italics, and underlines: DRAWTEXT 5,5,150,10,"[I/][S/][U/]Striked Underlined Italics![U/][/S][/I]",#WHITE.
Compared to version 1, version 2 uses an entirely different algorithm to vectorize the text. It draws using a lot less lines and the data loaded into the slot is a lot more compact. It covers all characters up to CHR 65535 and occupies ~0.3 MB. InstructionsRunning CHRVEC_2 produces the example. You can copy the def block to your own code, but just remember to bring along the global variable CHRVECSLOT and its associated code, as well as CHRVEC.DAT (or your own created .DAT file) to your project folder. Changing CHRVECSLOT changes what slot the data is loaded into.