Thanks TonyG:
For a start you've assigned temp as a TImageFont and now are using it to hold the GetImageFont output.
I know, that's what I wanted to do as originally just testing the output of GetImageFont was failing, but this was because I left the brackets off. What I dislike about Max and PLus is sometimes you can leave the brackets off functions and other times not, I don't get when you can and can't. It would be simpler if functions ALWAYS required brackets.
Second GetImageFont is a function so you need GetImageFont()
When I tried this I got that Int error, but later when I tried it, it worked, I can't explain why!
In addition, you're creating a TImageFont without any parms.
just cos I wanted a valid structure in place to assign the return value of GetImageFont to. Originally I tried Local temp:TImageFont = GetImageFont but it was returning an error (turns out it need brackets, oh well).
Wouldn't you need to execute LoadImageFont first so that GetImageFont would have something to return?
From reading the docs, it implied there was already a default font loaded.
i just put it there so you knew about it.
OK, thanks, different options is useful.
Ok thanks diablo, your first code snippet works. Also the int error went away I, can't really explain why... Your second code snippet works if I put "c:\Windows\Fonts" as the path, obviously this isn't so good as it may not be the same on all systems and I should include the font with the data, then it'll work on Macs.
I've got to write more mini test routines to check out how this language works properly.
Thanks everyone for the help.