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

Username:   Password: 
 RegisterRegister   
 How to change the Font size\type of font in Turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Killa Hilla




PostPosted: Sat Mar 01, 2003 10:40 pm   Post subject: How to change the Font size\type of font in Turing

ok, I need to know something as simple as Increasing the font size\font type in Turing.

Please Post a code or advise on how to change the Font size\font type

Thank you
Sponsor
Sponsor
Sponsor
sponsor
DarkHelmet




PostPosted: Sat Mar 01, 2003 11:07 pm   Post subject: (No subject)

first thing you have to do is declare an integer to act as the font you want.


var intfont : int


then you have to set it equal to the font and size you want.


intfont := Font.New("Times New Roman:18")


make sure you use the capitals in Font.New. You also can't have any spaces after the colon and the font size. Next thing you have to do is tell it what text to put to the screen, where to put it, and what colour.


Font.Draw("hello", 150, 150, intfont, black)


the first parameter is the text to output. The second one is the x coordinate of the position you want it put at, and the third one is the y coordinate of the position. the forth is the variable that has been set to the font. The last one is the colour you want for the text. You must have this last line for each line of text you want to put to the screen.You can also have several different variables for different fonts.
Killa Hilla




PostPosted: Sat Mar 01, 2003 11:27 pm   Post subject: (No subject)

ok, it worked

Thanks
azndragon




PostPosted: Mon Mar 03, 2003 6:19 am   Post subject: (No subject)

If you just want to change the font of the entire program into one font, just change the options, under the run window heading.
pheonix3000




PostPosted: Wed Mar 05, 2003 7:09 pm   Post subject: (No subject)

i didnt get how to change the font of the entire program. how do u do it again.. where do u go?
Asok




PostPosted: Wed Mar 05, 2003 7:16 pm   Post subject: (No subject)

well changing the font of the entire program is client side, meaning you wont have the same result on another machine. Anyways go to file -> prefferences it's right there. Keep in mind, it's only a visual effect, saving it and running it on another system the font will revert back to the default or whatever the user has specified.
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: