! hp_meter.sqr (hp printer support library and utilities for SQR) ! Copyright (C) 1997 Ray Ontko & Company ! ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! !++ ! ! Name ! ! hp_meter.sqr ! ! Description ! ! Prints a test file for a font. The lines of the test file are ! then measured and recorded in a font metrics file for the ! hp printer support library for SQR (hp.sqh). ! !-- ! ! Author ! ! Ray Ontko ! Ray Ontko & Company ! Richmond, In 47375 ! rayo@ontko.com ! ! Modification History ! ! Name Date Comment ! ---------------- ---------- ---------------------------------------- ! Ray Ontko 1997/06/04 Added this header ! begin-setup declare-layout default orientation=landscape char-width=4.5 end-declare end-setup begin-program do main end-program begin-procedure main ! ! NOTE: Change this line to adjust the output ! alter-printer font=4148 point-size=7.5 font-type=proportional ! we print two vertical bars to get an idea of the spacing print '||' (1,1) next-listing ! next we verify that there is no kerning. The next two lines ! should be the same length. print '|AWAWAWAWAW|' (1,1) next-listing print '|AAAAAWWWWW|' (1,1) next-listing ! now we print all the 7-bit characters. Note that if you ! want to use characters beyond the 7-bit set, you will need ! to specify a symbol set in the alter-printer statement above. move 32 to #i while #i < 127 let $line = '|' || lpad(chr(#i),72,chr(#i)) || '|' print $line (1,1) next-listing add 1 to #i end-while end-procedure