
-----------------------------------
RoCkEr
Sat Oct 28, 2006 11:07 am

Font help
-----------------------------------
What do you var so you can get Font.Draw to work?

-----------------------------------
xHoly-Divinity
Sat Oct 28, 2006 11:28 am


-----------------------------------
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



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

-----------------------------------
RoCkEr
Sat Oct 28, 2006 11:48 am


-----------------------------------
thanks alot man, im making a game for comp science class
