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

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




PostPosted: Sun May 01, 2005 5:12 pm   Post subject: Font Command Help

Im new I need help with the font command Im a newbie and Im using tuirng dos version 6.55
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sun May 01, 2005 7:37 pm   Post subject: (No subject)

Dos version, eh? I don't know how different it is, so I don't know how much we can help you with that. But, if you want help, you're definately going to have to give us some more detail.
mike200015




PostPosted: Mon May 02, 2005 5:47 pm   Post subject: (No subject)

Your probably talking about the command to output text in a different font.
To do that you need to use either the Font.Draw or the Draw.Text command, they do the same thing.

So, 1st, you need to declare a variable for your font. This is how you do it:
Turing:
var font id :int :=Font.New ("(font):(size)")

Substitute font id for a variable name, sub. a font name for (font), and a font size for (size).
Next, you need to actually output something, and that is dont with the Font.Draw command, or the Draw.Text command. Like this:
Turing:
Font.Draw ("(string)",x,y,font id,colour)

You could put Draw.Text in instead of Font.Draw, the rest is the same.
Sub. in words for (string), x and y are your start positions, and font id, is the variable you declared at the top.
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: