Qbasicnews.com

Full Version: Printing font
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to know how to change the font size in Qbasic. The font size in SCREEN 13 is waaaaay to big, and I can't seem to find a way to change it. Also, it would be useful if someone could tell me how to change the color of the font as well.

Please help me
Thanks
Presuming you use Screen 13 by default, here's my answer:

- About the coloring, you can use the COLOR statement to select a current color to draw the text in.
Code:
COLOR 4
PRINT "Hello"

- About changing the font size, there is no direct way to do this. This is because the text in Screen 13 are in fact just little sprites (images). So if you would like a smaller font, you'd have to make sprites yourself with smaller letters on them (4x5 is smallest), and use them.

Sorry, I dont have any code available at the moment to illustrate this, but please continue asking if you have more questions Smile

Yours sincerely,

- Neo
Thanks. I actually found a place on the net that answered my question.

The only problem is that my QB compiler doesn't allow me to Ctrl-V stuff from the net. Is there a cure for this or is this just QBasic is?
... Maybe I need a different QB compiler?
It depends, if you're using Windows 2000 or XP, you can select the little icon in the title bar of QBasic (windowed), and select Paste.

If not, you can copy the code to notepad, and save it as a BAS file, then open it with QB.

Hope this helps.

Yours,

- Neo
awesome! 8)

It definately works.


Thanks for everything.
Karma = Karma + 1