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

Username:   Password: 
 RegisterRegister   
 Is there a way to change the default font?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yeyavailability




PostPosted: Thu May 29, 2008 1:06 pm   Post subject: Is there a way to change the default font?

I've been using Font.Draw for everything I type, and so far those were only a few words--but now I have more than a few large paragraphs to deal with. Is Font.Draw the only way to change the font that I have to use it everytime I make a new line, or is there a way I can write it all without using it or only once?

Thankyou~
Sponsor
Sponsor
Sponsor
sponsor
petree08




PostPosted: Thu May 29, 2008 1:17 pm   Post subject: RE:Is there a way to change the default font?

yes , Font.Draw is the only way to draw fonts,

however if you wish to change the font for displaying output from a put command

i.e put "Whatever"

you can go under settings and change the default display font.

if you want to change a font usng Font.Draw then

code:

var FontID  : int

FontID := Font.New ("Arial:30")

Font.Draw ("Ba, text",100,100,FontID,12)

% free the font
Font.Free (FontID) % i'm not sure if this is how
% to free a font maybe try FontID := Font.Free

% assign new font
FontID := Font.New ("System:20")

% draw new font
Font.Draw ("Different text", 100,10,FontID, 10)

%% you should always free your font after use
% at the end of program or something



- hope that helps man

-
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  [ 2 Posts ]
Jump to:   


Style:  
Search: