Re: Printing in Windows
- Posted by Kat <gertie at PELL.NET> Mar 13, 2001
- 490 views
On 13 Mar 2001, at 7:19, Derek Parnell wrote: > > > Hi Jonas, > when printing in Windows you have to do all the positioning yourself. > > To ensure that words begin on a new line, you must always measure the size > of the text you intend to fit on the line and if it doesn't fit, reduce it > by one word and try again until it does fit. > Then you can "print" the line. You must give X and Y positions before each > print instruction to make sure you are positioned correctly. > > You can think of printing in windows as having a page and placing characters > anywhere on any "pixel" address, and when the page is complete, issuing an > "end-page" command. Then you can start the next page. > > Its very messy and prone to easy mistakes, particularly when using multiple > fonts etc... > > This is all theory, 'cos I haven't tried with Win32lib yet, just VB and C. I did just that on the C64 around 1990. I also changed fonts (adding a pixel here or there) to some words, to make the page do both left- and right-aligning. It's do-able, but on the C64 it could take an hour or more to do 15 pages. Kat