Assigning A Value Of Character Apace; Sample Program - Star Micronics LC24-15 User Manual

Multi-font
Table of Contents

Advertisement

Assigning a value of character space
Besides being able to specify the actual width of the character, this printer
allows you to specify the position in the standard grid where the character
will print. You must specify the dot column in which the printed character
starts and the dot column in which the character ends. Why, you may ask,
would you want to define a character this way instead of merely defining the
overall width of the character? Because this printer's proportional character
definitions can also be used to print normal width characters. And by
centering even the narrow characters in the complete grid they will look
good even you aren't printing them proportionally.
The three bytes are used to specify the width of the character and the space
to be allowed on either side of it. The left space (in dot columns) is specified
by m0 and the right space is specified by m2. The second byte (ml) specifies
the number of columns of dots that will be printed by the character. By
varying the width of the character itself and the spaces around it, you can
actually create proportional width characters.
When defining characters, the number of printed columns (ml), and the sum
of side spaces and the character width (mO+ml+m2) cannot exceed the value
shown below.
Character mode
Draft characters
LQ pica characters
LQ elite characters
LQ semi-condensed
LQ proportional
Draft super/subscript
LQ super/subscript
LQ prop. super/subscript
ml
mO+ml+m2
9
12
29
36
23
30
15
24
37
42
7
12
23
36
23
42
program
To demonstrate how to use the download characters, let's use the "tele-
phone" character and the other user-defined characters to print a small
graph. This program will do just that:
79

Advertisement

Table of Contents
loading

Table of Contents