EasyManua.ls Logo

HP PCL 5 - Page 105

HP PCL 5
340 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ENWW Printer-Specific Differences 2-57
Vertical Clusters
Vertical clusters are groups of two or three narrow characters
side-by-side in a vertical line of text. Vertical clusters containing
half-width characters can be created by using a combination of print
direction and cursor positioning commands.
An example of vertical clusters is shown below. The C program that
follows was used to generate the PCL commands for this example. In
this example, two half- width characters (e.g. 2-digit numbers) were
printed as vertical clusters.
#include <stdio.h>
#include <fcntl.h>
#define MONTH “\214\216"
#define TILDE ”\201\140"
#define DAY “\223\372"
#define CLUSTER ”\201\100\033&f0S\033&a0P%s%d\033&a270P\033&f1S"
FILE *prn;
main()
{
int point_size=24;
int offset;
char OFFSET[40];
prn = fopen(“lpt1",”wb"); /* open lpt1 for writing */
offset = ( 36 * point_size * 300) /