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

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




PostPosted: Wed Feb 28, 2007 8:26 pm   Post subject: help with font

i no how to put a special font i want, but how do u get a font, as in let user input in that font ya how do u that ?
Sponsor
Sponsor
Sponsor
sponsor
HeavenAgain




PostPosted: Wed Feb 28, 2007 8:33 pm   Post subject: Re: help with font

if i'm not mistaken
make a var string
and let user enter the font they wanted, and place that string var to the fontID
but i think it will be better if you give a list of avaliable choices of font for the user to enter, and it must be exact

or if you dont like that idea, you can also make a few different type of font variables
and output them, so the user can see what they are like and let user pick( that would be another int variable or char)
and if user picked let say 1 or a then you will use serif or whatever.
i hope this helps Wink good luck
someguy123




PostPosted: Thu Mar 01, 2007 7:11 am   Post subject: Re: help with font

HeavenAgain @ Wed Feb 28, 2007 8:33 pm wrote:
if i'm not mistaken
make a var string
and let user enter the font they wanted, and place that string var to the fontID
but i think it will be better if you give a list of avaliable choices of font for the user to enter, and it must be exact

or if you dont like that idea, you can also make a few different type of font variables
and output them, so the user can see what they are like and let user pick( that would be another int variable or char)
and if user picked let say 1 or a then you will use serif or whatever.
i hope this helps Wink good luck


thx but thats not wat i was looking for, i am looking like how to let them enter in the specific font i want them to enter in, not letting them choose the font they want
HeavenAgain




PostPosted: Thu Mar 01, 2007 11:35 am   Post subject: Re: help with font

oh ok then thats quite simple,
code:

var font1 : int
var input : string %input as a string
get input % getting the user's input
font1 := Font.New ("serif:12:bold,italic") % serif is the font you want, and 12 is the size and bold italic
Font.Draw (input, 50, 30, font1, red) % 50 is x, 30 is y, font1 is the font and font size and any addition to var font1, and last one is the colour red


hope it helps
someguy123




PostPosted: Tue Mar 06, 2007 6:43 pm   Post subject: Re: help with font

nop i tried that b4, doesnt work, this was actually for CCC in the junior devision, question 2, if you tried to run this u will c wat i mean and why it doesnt work. I am trying to let user enter in that font, not outputting in that font. thx anyways
Clayton




PostPosted: Tue Mar 06, 2007 7:15 pm   Post subject: Re: help with font

You have a choice between either my gets() function, or ericfourfour's Getter class. Search for either of them in Turing Submissions and you should find them easily enough.
someguy123




PostPosted: Wed Mar 07, 2007 3:51 pm   Post subject: Re: help with font

Freakman @ Tue Mar 06, 2007 7:15 pm wrote:
You have a choice between either my gets() function, or ericfourfour's Getter class. Search for either of them in Turing Submissions and you should find them easily enough.


wow thx that really helped a lot
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  [ 7 Posts ]
Jump to:   


Style:  
Search: