QMS SmartWriter 80+ User Manual page 406

Table of Contents

Advertisement

10.
Weight
defines the boldness of the font, with a range
of
-7
(light) to
+7
(bold).7 Medium weight fonts have
a value of zero. Values of -3 and +3 are typical for
light and bold fonts, respectively.
11.
Typeface
selects the typeface from those available
(see
Typeface
command explained earlier).
G.4
Computing Character Set Codes
To calculate the value of the
Character set
field of the font
header, follow these steps:
1. Get the last two characters of the
Character Set
com-
mand which would be used to access the desired char-
acter set. For example, the Math-8 set has
8M.
2. Multiply the numeric part by 32, in this case 8 x 32
=
256.
3. Look up the ASCII value of the second character, in
this case 77. (ASCII are provided in Appendix
B.)
4. Add these two results together, and subtract 64, in
this case yielding a character set code of
269.
For your convenience, the codes for commonly used char-
acter sets are provided in the following table:
7Negative numbers are represented by its 16-bit 2'8 complement value. For
example, a value of -3 would be sent to the printer as CHR$(255);CHR$(253);,
which represents 65,533.
H-40
HP Emulation Mode

Advertisement

Table of Contents
loading

Table of Contents