beautypg.com

Matrix Orbital GLK24064-25 Legacy User Manual

Page 18

background image

3.3.3 Set text insertion point (254 71 [col] [row])

This command sets the insertion point to the [column] and [row] specified. The insertion point is posi-

tioned using the base size of the current font (this command does not position the insertion point at a specific

pixel). The pixel column used is determined by multiplying the width of the widest character in the font

by [column]. The pixel row used is determined by multiplying the height of the font by [row + interline

spacing].

3.3.4 Set current text insertion point to top left (254 72)

This command moves the text insertion point to the top left of the display area, based on the metrics of

the current font. Refer to the "Set font metrics" command below for more details.

3.3.5 Set text insertion point using pixel values (254 121 [x][y])

This command sets the next position for text placement to an individual pixel location. The coordinate

([x position],[y position]) defines a pixel on the screen where the top left corner of the screen is defined as

(0,0). This pixel location will be used as the top left corner of the next character of text which is sent to the

module without any regard to ’font metrics’ like character spacing or line spacing.

3.3.6 Set current font (254 49 [font ID])

This command instructs the display to use the font specified by [font identifier] as the default font. The

value specified should refer to a font already present in the display’s memory.

NOTE The font ID is established when the font is saved to the display, normally using

the mogd.exe program. The installed 5x7 font ID is 0x01, unless changed by user.

3.3.7 Set font metrics (254 50 [metrics])

Where [metrics] = [left margin][top margin][x space][y space][scroll row]

This command defines the metrics of a font already present in the display’s memory.

• [left margin] specifies the first pixel column to use for the first character in a row. In some instances,

a font may not evenly fit on the screen and dividing the extra space between the margins will improve

the overall appearance of the font.

• [top margin] specifies the top pixel row to begin drawing the first row of text on the display area.
• [x space] specifies the number of pixels to place between characters (i.e., character spacing).
• [y space] specifies the number of pixels to place between rows of text (i.e., line spacing).
• [scroll row] specifies the pixel row where scrolling should start (or, if auto scrolling is off, where

wrapping should occur). Typically, this value should be set to the first pixel row immediately below

the last row of text which will fit the display.

Matrix Orbital

GLK24064-25

14