README This file gives a brief overview of the hp printer support library for SQR (hp.sqh) developed initially by Ray Ontko. The library includes a number of routines for controling various features of HP printers, along with routines to better support proportional fonts. This library and supporting utility programs are freely distributable as long as the original copyright notice is kept and the source code is provided. For the legal language, see "COPYING.TXT". TO USE THE hp.sqh LIBRARY 1) Download the hp.zip file. Chances are you'll be downloading the files from the internet or from storage device. 2) Unpack the save set. For example: $ pkunzip hp.zip This contains the README and COPYING files, help files, and generally everything you need to run SQRSH. 3) Use the demo program. In the example below, we've used the font metrics file 4148.hp (which happens to be Univers Upright Medium 7.5 pt). The demo file reads this information into an array, and then reads the test file (my_file.txt) and truncates it to a length of 144 points, or about 2 inches (ther are approx 72 points per inch). $ sqr hp_demo / -xl -printer:hp SQR: Structured Query Report Writer V3.0.15 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. Font metrics file name: 4148.hp Test File Name: my_file.txt Truncation Length (in points): 144 SQR: End of Run. You can then print the resulting file (hp_demo.lis) on your favorite hp printer. 4) Create your own metrics file. First, modify the hp_meter file to produce a test print in your desired font, size, weight, and style. Then run the program $ sqr hp_meter / -xl -printer:hp SQR: Structured Query Report Writer V3.0.15 Copyright (C) MITI, 1994, 1995. All Worldwide Rights Reserved. SQR: End of Run. Then print the resulting file (hp_meter.lis) Now, very carefully, measure each of the lines in millimeters, and record this number in a file of your own naming. You may want to make a copy of 4148.hp and use this as a template for recording your measurements. 5) You can now modify the demo program to use the desired font, and give it the metrics file you just created. WHERE TO REPORT BUGS Let me know how this works for you. I'd be happy to act as librarian for metrics files. Also, if you have other routines that you think are needed or would like to contribute, please let me know. I can be reached at: Ray Ontko Ray Ontko and Company P.O. Box 9 Richmond, IN 47375 rayo@ontko.com