For a start you've assigned temp as a TImageFont and now are using it to hold the GetImageFont output.
Second GetImageFont is a function so you need GetImageFont()
In addition, you're creating a TImageFont without any parms.
Second GetImageFont is a function so you need GetImageFont()
In addition, you're creating a TImageFont without any parms.