From arb@comp.lancs.ac.uk Thu Sep 16 09:34:58 1993 From: Andrew Brooks Date: Wed, 15 Sep 1993 22:09:57 +0100 To: dbh@doc.ic.ac.uk Subject: Re: How does RO3 printing code differ from RO2? Newsgroups: comp.sys.acorn.tech In-Reply-To: Organization: Department of Computing at Lancaster University, UK. Cc: In article you write: >Several users of my !Family program for editing and printing family >trees have reported bugs concerning both printing and outline fonts. >The program works OK on my A410 under RO3.1 but I have only been able >to test the print routines by generating PostScript to a file. I >developed it using the RO2 PRMs and have not been able to check my >code against the RO3 PRMs. Questions: > >1. What changes are needed to get RO2 printing code to work correctly >under RO3? > >2. Have any of the RO2 Font_ calls changed significantly under RO3? > >3. What is Vector Marketing's name, address, telephone and price for >updating PRMs? > >aTdHvAaNnKcSe for any help. >-- >Denis Howe >The Free On-Line Dictionary of Computing >Gopher/FTP wombat.doc.ic.ac.uk (146.169.22.42) Whilst looking for something else I came across the information in the RO3 PRMs about printing, so I thought I would type in the bit about declaring fonts which is specific to RO3. After calling PDriver_SelectJob you should declare the fonts your document uses by calling PDriver_DeclareFont for each distinct font your document uses. You should check bit 29 of PDriver_Info features word first which will be set if the printer driver supports PDriver_DeclareFont. PDriver_DeclarFont (SWI &80155) In: R0 = font handle (or zero to use R1) R1 = pointer to name of font (or zero to use R0) R2 = flags word bit 0 set = don't download font even if not present within device bit 1 set = when font is used kerning is applied all other bits zero. Out: R0-R2 preserved. Any font name passed must be identical to the name passed to Font_FindFont, including any encoding and matrix information. After all fonts have been declared make one last call with R0 = R1 = 0. This should also be done even if no fonts are used. I hope the above helps. I have used your Family program and like it, although the screen redraw seems a bit slow on an ARM2. Apart from that it's great. Andrew.