Before reading too far into this, go grab a newspaper or some other publication that has print laid out in narrow columns. Count the number of letters and blank spaces on several lines. Chances are, you’ll find that each line contains a DIFFERENT number of characters.
This is done with a method called Proportional Printing. It turns out that fat characters like M take take up a whole lot more space than the tiny letter i, so each character is given only as much room as it needs. Not only is this much more pleasing to the eye, it allows a surprising amount of extra text to be squeezed into the same amount of space.
Our TS2068s normally display 32 or 64 (and now 85) columns of text, with each character taking up the same width, no matter what its size. It seems that we should be able to improve this somewhat.
Actually, the job has already been done for us. In the Nov. 1985 issue of YOUR SPECTRUM, in the article “All Out of Proportion”, such a program is given. Unfortunately, it does have a number of defficiences. I’ve corrected as many of these as are practical (though thay can still be annoying at times) and presented it here for your use. Note that the Spectrum program and my perversion of it here are radically different in many ways. If you’ve got the old version, you’ll still have to completely retype it for the TS2068. Still, they do function somewhat alike, and you might find the text of that article to be helpful.
For those who have that original article, the main differences are: 1) the code is modified to run on a TS2068, 2) machine code is initially entered through DATA statements, eliminating the need for a hex loader, 3) the character fonts are MUCH improved, and you don’t have to type in the pixel patterns for each, because my program derives the patterns from the Timex patterns, already in ROM, 4) the code works as in OVER 0, rather than OVER 1, so if you print over a space that already contains text, you won’t get such an awful mess, and 5) the TAB function is also implemented in the proportional mode.
This article contains two programs; type in and RUN the first one. After a long wait, it will SAVE the true proportional printing program to tape. When you reload that one (no waiting required, from here on) you’ll be ready to begin.
It starts out with a little demonstration of proportional printing. This redefines the LPRINT command, so it will conflict with your use of a printer. I haven’t found this to be any bother in the types of programs I’ve used it in. Still, if there’s sufficient interest, it shouldn’t be too hard to produce an add-on program that inserts a “proportional print” channel, and attaches it to an unused stream. This could allow your normal printer to work (in its normal mode) in conjection with proportional printing on the screen. In the mean time, if your printer supports a COPY function, that should work with this program, as is.
In any case, LPRINT now prints to the screen in proportional mode, and PRINT continues to work like it always does, so you can mix BOTH methods in your program at once. However, both maintain their own separate screen locations, so you can easily print to different parts of the screen with each.
For proportional screen positioning, you can use LPRINT AT and LPRINT TAB commands. However, note that the old AT and TAB functions use screen positions that assume all characters are 8 pixels wide. This would never do for proportional printing, so when you use AT or TAB with LPRINT, you specify the X and Y locations in PIXELS, not in characters. This means you can place your characters anywhere you want on the screen, right down to the pixel level. The BASIC program, from lines 3030 on give a reasonable demonstration of how it works.
The YOUR SPECTRUM article also included a font designer program, which is included here, but this is optional. To move the cursor, use the Q, A, O, and P keys. Use M and N to turn a pixel on or off. F keeps the design, D displays a character, U displays the entire character set and S and J save and load the character set. LOAD in a SAVEd character set to the main program with LOAD “” CODE 64208. Once loaded into the proportional print program, you can save the program and fonts together, and never bother with the fonts again.
The proportional printing fonts require one new thing we never worried about before; you have to specify how many pixel wide your character is. To do this, you design your character to touch the right most border of the 8 x 8 character block you’re given. Then, in the top row of pixels, you set each pixel that’s in a valid column for that character. Thus, if your character is to be five pixels wide, simply set the right most 5 pixels in the top row (those won’t be printed on the screen, don’t worry). Don’t forget to include one or more pixels for the spacing between characters! In the “standard” character set, I’ve chosen to have only one pixel width of space between characters, and a “blank space” character is 4 pixels wide. This works fairly nicely, but you can change it to suit your needs.
A small sample of proportional printing is included here. Won’t that look nice in your next program?

NOTES from Editor:
A big thanks to Wes, with all Wes does, and it is a lot folks, Wes finds time to do projects for us, Time Designs, answer a lota mail, write programs, find time for family and of course his employer. ALL of the TS family benefits from the generosity of Wes and all the others who contribute their valuable time and talents to their user group and newsletters and BBSs. If you like being on the receiving end of the efforts of others, and do not contribute time, talent or sweat to the efforts of a user group, newsletter or BBS, there will soon be fewer or no sources of information. Several UGs and many BBSs have quit over the past year, several newsletters have reduce their number of issues and no replacements are in sight. Wake up folks, smell the coffee, and lend a hand before it is too late.
The proportional printing program will be Uploaded to BUBBS under name of WESPPP.BAS. The font program may be uploaded at a later date. Data on BUBBS: (607)693-3359-7 days-24hours a day-300 baud on from 5pm to 9am weekdays, 24 hours weekends-free.
On pages 7 thru 10 of this issue, as in earlier issues, we are running a printout of the TS2068 ROM disassembly by Wes Brzozowski. We are running extra copies of each page of the ROM Disassembly that we may offer members at the conculsion of the printout a complete set. With this issue we have nine sheets or 18 pages of printout. Our extra copy run is set at 50, it will be made available on a first come first serve basis with a minimial donation requested to cover postage.


Optional Font Designer Program
