Fancy printing from pascal ?

Hope someone can help !

I am trying to print formatted text from a DOS TP program to a HP
laserjet III printer.
The problem is that I want to use a proportional font and still have
the output formatted nicely.
Has anyone done any work in this area ? Basically what I need is a
method to calculate line widths, word widths etc. (as a simple word
processor would do).

Any help would be greatly appreciated ?

Shane Cunningham.

Dublin, Ireland.