Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Font help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
RoCkEr




PostPosted: Sat Oct 28, 2006 11:07 am   Post subject: Font help

What do you var so you can get Font.Draw to work?
Sponsor
Sponsor
Sponsor
sponsor
xHoly-Divinity




PostPosted: Sat Oct 28, 2006 11:28 am   Post subject: (No 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
RoCkEr




PostPosted: Sat Oct 28, 2006 11:48 am   Post subject: (No subject)

thanks alot man, im making a game for comp science class
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: