Blitz (196/218)

From:Tony Rolfe
Date:29 Aug 2001 at 02:15:51
Subject:Re: Windows and fonts and stuff like that.

On 28 Aug 2001, at 9:29, Nick Clover wrote:

> Hello Gill
>
> On 28-Aug-01, you wrote:
>
>
>
> > When Window 0 is active, *rp\Font\tf_XSize is 11 (which is correct)
> > When Window 1 is active, *rp\Font\tf_XSize is 8 (which aint!)
>
> > Anybody got any ideas why this should be so?
>
> Have you specifically told window 1 to use the same font as window 0?

Hmm, I don't think so. I thought that a window took the screen's
font by default....
>
> eg. windowfont 0, just after the window is opened. Using 'Use
> IntuiFont 0' won't work with all windows...
.... although I could be wrong

>
> but It seems to me to be a waste of time creating a function for a 1
> line command. Just do it directly with:
>
> rp.l=RastPort(0);just after you open window 0
>
> result.l=TextLength_(rp,&text$,Peek.l(&text$)-4)

I was doing a very bodgy thing to get the text length a long time
ago, before I discovered TextLength_ so I created a function then.
When I discovered how to do it properly, I simply had to change the
function. Used too many places to fix now :-(

Thanks for the help

Tony Rolfe
For Gill & Tony Rolfe
EDGEWATER MOTEL
1 Princess Avenue South
BURRILL LAKE NSW 2539
Phone: +61 2 4455 2604
Fax: +61 2 4454 4095
http://www.shoalhaven.net.au/edgewater

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie