Computer Science Canada

Font help

Author:  RoCkEr [ Sat Oct 28, 2006 11:07 am ]
Post subject:  Font help

What do you var so you can get Font.Draw to work?

Author:  xHoly-Divinity [ Sat Oct 28, 2006 11:28 am ]
Post subject: 

Font.Draw (string, x, y, font, color)
The 'string' is where u type in ur text. x and y are ur coordinates. Font is ur font type. And color is the color of ur txt.
U must first set ur 'font' type so


code:

var font : int
font := Font.New ("serif:12")
Font.Draw ("Hello", 50, 30, font, red)


The above code will output "Hello" at (50, 30) in size 12 serif font in red.
Turing reference, it's a helpful tool

Author:  RoCkEr [ Sat Oct 28, 2006 11:48 am ]
Post subject: 

thanks alot man, im making a game for comp science class


: