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

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




PostPosted: Thu Mar 02, 2006 10:04 pm   Post subject: Italics

How would you change the font so when the user inputs something instead of it being regular letters, the letters are in italics?
Shocked
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Thu Mar 02, 2006 10:11 pm   Post subject: (No subject)

Use the Font.() module.

Turing Documentation (F10) wrote:

example fontID := Font.New ("Ariel:18x12:Italic")
[Gandalf]




PostPosted: Thu Mar 02, 2006 10:14 pm   Post subject: (No subject)

You can use Font.Draw in combination with getch(). When setting the new font, you would add ":Italic", like so: var getFont := Font.New ("Serif:12:Italic").

Another alternative, which will only work on the current computer you are working on, is to change the default put/get font in File -> Preferences -> Run Window -> Font Stuff.
batman




PostPosted: Fri Mar 03, 2006 4:31 pm   Post subject: (No subject)

Thanks for the help. But lets say I had a code like this:

code:

var name :string
get name
put name


What would I have to do in order to make the name the user enters is in italics?
Delos




PostPosted: Fri Mar 03, 2006 5:45 pm   Post subject: (No subject)

Don't use put.

Oh, wait.
Delos wrote:

Use the Font.() module.


Wink Looks like I already answered your question.
batman




PostPosted: Fri Mar 03, 2006 6:02 pm   Post subject: Italics

Thanks for the help! Very Happy
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  [ 6 Posts ]
Jump to:   


Style:  
Search: