5 Cs
In GL/2, the coordinate system can be set by the user. The default coordinate system has its origin at the lower left of the picture frame (P 1), with its
Two types of units are available, plotter units (default) and user units. A plotter unit is 0.025 mm (0.00098 inch, 0.294 pixels at 300 dpi). User units can be set as required, different for the x and y axes, using the SC command.
CT P
When importing an existing GL/2 file or creating an GL/2 image within an application, you use several Escape sequences to set up the picture frame size, choose the picture frame location, and enter and exit GL/2 mode.
5 EG m
The following escape sequence is used to enter the GL/2 mode:
<ESC> % n B
If n is Oor an even number, the cursor is set to its previous position when using GL/2. If n is 1or an odd number, the cursor stays in its current position. When n is Oand the printer is entering GL/2 for the first time, the default cursor position is P 1, the lower left corner.
This command sets the cursor and causes subsequent GL/2 commands to be interpreted as commands, not text to the printed. The printer remains in the GL/2 mode until an exit or reset command (see below) is received, or until the printer is switched off.
To exit the GL/2 mode, use the following escape sequence.
<ESC> 7Cn A
If n is O(or an even number), the cursor is reset to its position before entering GL/2; if n is 1 (or odd), the cursor remains at its current position. After this command, subsequent GL/2 commands are treated as text and will be printed.
99