
-----------------------------------
batman
Thu Mar 02, 2006 10:04 pm

Italics
-----------------------------------
How would you change the font so when the user inputs something instead of it being regular letters, the letters are in italics?
 :shock:

-----------------------------------
Delos
Thu Mar 02, 2006 10:11 pm


-----------------------------------
Use the Font.() module.


example fontID := Font.New ("Ariel:18x12:Italic")


-----------------------------------
[Gandalf]
Thu Mar 02, 2006 10:14 pm


-----------------------------------
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
Fri Mar 03, 2006 4:31 pm


-----------------------------------
Thanks for the help. But lets say I had a code like this:


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
Fri Mar 03, 2006 5:45 pm


-----------------------------------
Don't use put.

Oh, wait.  

Use the Font.() module. 


 :wink:  Looks like I already answered your question.

-----------------------------------
batman
Fri Mar 03, 2006 6:02 pm

Italics
-----------------------------------
Thanks for the help! :D
