Computer Science Canada

Get Font

Author:  mike200015 [ Thu Feb 24, 2005 7:12 pm ]
Post subject:  Get Font

Is there a way to change the font of input. So when the user inputs something, the input will be in a different font Question

Author:  Bacchus [ Thu Feb 24, 2005 7:22 pm ]
Post subject: 

i dont think theres a hardcoded way but you can make a custom one. just get the key and add it to a string to be drawn with Font.Draw

Author:  mike200015 [ Thu Feb 24, 2005 7:28 pm ]
Post subject: 

Idea Surprised good idea, didnt think of that. Thanx Exclamation

Author:  Cervantes [ Thu Feb 24, 2005 7:32 pm ]
Post subject:  Re: Get Font

mike200015 wrote:
Is there a way to change the font of input. So when the user inputs something, the input will be in a different font Question


If this is for computer science class (ie. your program only needs to be run on one computer), you can trick your teacher into thinking that you made it with fonts by changing the default font of YOUR run window. Go to File -> Preferences -> Run Window -> Change Font.

Author:  mike200015 [ Thu Feb 24, 2005 7:41 pm ]
Post subject: 

lol yea i thought of that, but its not jus gonna b run on 1 comp, my teachers gonna check it on his comp at home

Author:  mike200015 [ Thu Feb 24, 2005 7:49 pm ]
Post subject: 

Bacchus wrote:
i dont think theres a hardcoded way but you can make a custom one. just get the key and add it to a string to be drawn with Font.Draw


i did that, cept when i use get, it still gets the input and shows it in the regualr font, and when you press Enter it puts it in the new font, is thr a way to put it in the new font while its being input also, not just after pressing Enter?

Author:  Cervantes [ Thu Feb 24, 2005 7:51 pm ]
Post subject: 

getch()


: