Page:NBS Technical Note 11176 (1983) (IAutilityprogramsf1176dick).djvu/19

 These cursor moves and the pen position are entered by the GET input command of line 5250. When the cursor is positioned at the appropriate position, the return key draws a line (with the appropriate pen mode) from the previous location to the current cursor location, enters the values into the character string, and returns for the next line input (lines 5340-5350). As in the Hershey input mode, / terminates the character. If the cursor is not centered at the right marker, vectors are added to the string to complete this move (lines 5360-5380). After verification of the validity of the character, the font is displayed and the routine is terminated if either the font input, FI, or the edit flag, EF, is set. The remainder of the routine is used to enter characters under cursor control if the NEW FONT option of the main menu is being performed. Note also, that the new font is saved by the page transfer routine of lines 11000-.

Lines 6000-6180 : HIRES FONT DISPLAY ROUTINES

The routines of this section display the members of a font on hires page 1 depending on their location in the font. Lines 6000-6020 determine the location at which the character is to be displayed (with 50 characters displayed at a time), line 6030 removes any previously displayed character at that location, and the remainder of the routine decodes the character string and draws the character. The variables XP and YP are used for the current cursor location, and DX and DY are used for the offset to the next location. As always, the penflag, PF, is used to determine whether the vector is to be plotted with the pen up (HCOLOR BLACK) or down (HCOLOR WHITE).

Lines 7000-7110 : FONT INPUT ROUTINES

The font N$ is inputted from disk drive DI, if it is not already saved on hires page 2. If the font is to be brought in from the disk, the memory flag, MF, is reset and the data pointer is restored. Otherwise, the routine is staightforward and the file is read until the occurrence of the end of file character string, EOF. At the completion of the read routine, the file name is saved in the variable O$. Utility Programs...