Guest
|
Posted: Wed Dec 06, 2006 9:12 am Post subject: FastReport 3 - DMP Command |
|
|
I finally got FastReport to do large font printing with dot-matrix
reports, but I can't seem to define the actual size of the font. I
tried several different ESC code parameters, but it just stays in one
size (which is too big now).
This is the ESC code specification according to another post (Epson
LQ-570+):
*****************************************************
ESC X m n
This sends both pitch and point sizes:
m specifies the pitch in 360/n chars per inch. The acceptable
values
are: 0, 1, 18, 21, 24, 30, 36, 42, 48, 60, 72
m=0 means no change in pitch
m=1 means standard proportional (same as ESC p 1)
m=anything else sets a fixed pitch at 360/m chars/inch.
(eg pica = 10 chars/inch = 36)
n sets the point size in half-points. Acceptable values are: 0, 16,
20, 21, 24, 28, 32, 36, 40, 42, 48, 52, 56, 60, 64 for Roman, Sans
Serif, Roman T, and Sans Serif H. Other typefaces can take only
0, 21, 42. Notice that n=21 gives 10.5 points, which is
standard for normal type and 42 gives 21 points, which is probably
right for double height.
The point of those 0=no change commands is to let you send pitch and
points separately. You can send a change in pitch only with
ESC X m 0 0
and a change in point size only with
ESC X 0 n1 n2
*************
I tried the following DMP Commands: (if I remember correctly)
#27#88#60#0
#27#88#1#0 (also replaced #0 with 21 and 42 and 48, etc)
#27#88#0#0 (replaced last parameter with different number also)
All command either returned normal (small) font or the same very large
font size.
Also, what exactly is the difference between pitch and point??
Any help will be greatly appreciated.
Jessica |
|