beautypg.com

4displaying graphics – Matrix Orbital GLK12232-25-WBL User Manual

Page 14

background image

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.

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 "1", 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 that will fit the display.

4

Displaying Graphics

This chapter describes the various graphics-display commands in detail.

Matrix Orbital

GLK12232-25-WBL

10