Qbasic

Moderators: None (Apply to moderate this forum)
Number of threads: 82
Number of posts: 236

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
HELP! IS THERE SUCH A THING AS BIGGER FONT? Posted by babyprogrammer on 19 Dec 2005 at 1:00 PM
hi! I just started programming in basic and i need to know if there
is a command to make font bigger! Easily! i don't know if this is even possible but if someone could help as soon as possible...that would be great!!!!
thanks

Report
Re: HELP! IS THERE SUCH A THING AS BIGGER FONT? Posted by anthrax11 on 19 Dec 2005 at 2:45 PM
: hi! I just started programming in basic and i need to know if there
: is a command to make font bigger! Easily! i don't know if this is even possible but if someone could help as soon as possible...that would be great!!!!
: thanks
:
:
There is no such command, but you could try entering screen mode 13, just put a "SCREEN 13" on the first line in your program.
QB puts bigger text on the screen in grahics modes than in text modes.

In graphics modes you could also draw your own font or copy existing text into memory and display it on the screen on a larger area.
I'll try to make a simple example:
SCREEN 13
PRINT "Simple text"

FOR x = 1 TO 180
FOR y = 8 TO 35
  col% = POINT(x / 2, (y / 2) - 7)
  PSET (x, y), col%
NEXT y
NEXT x

That looks ugly, because the algorithm isn't very advanced, but it does do the job.

You could look for QBasic libraries that would draw big fonts. I haven't seen any, but I haven't really looked for them either. If you have lots of time, you could make your own libraries, it shouldn't be too difficult, just the font drawing is time consuming.
Good luck!

Report
Re: HELP! IS THERE SUCH A THING AS BIGGER FONT? Posted by babyprogrammer on 19 Dec 2005 at 3:08 PM
: : hi! I just started programming in basic and i need to know if there
: : is a command to make font bigger! Easily! i don't know if this is even possible but if someone could help as soon as possible...that would be great!!!!
: : thanks
: :
: :
: There is no such command, but you could try entering screen mode 13, just put a "SCREEN 13" on the first line in your program.
: QB puts bigger text on the screen in grahics modes than in text modes.
:
: In graphics modes you could also draw your own font or copy existing text into memory and display it on the screen on a larger area.
: I'll try to make a simple example:
:
: SCREEN 13
: PRINT "Simple text"
: 
: FOR x = 1 TO 180
: FOR y = 8 TO 35
:   col% = POINT(x / 2, (y / 2) - 7)
:   PSET (x, y), col%
: NEXT y
: NEXT x
: 

: That looks ugly, because the algorithm isn't very advanced, but it does do the job.
:
: You could look for QBasic libraries that would draw big fonts. I haven't seen any, but I haven't really looked for them either. If you have lots of time, you could make your own libraries, it shouldn't be too difficult, just the font drawing is time consuming.
: Good luck!
:

: [/black] Thanks! I never thought of that, and the normal font looks like just the size i need. Maybe when i have more time i'll make a library...haha maybe. Thanks again.

Report
Re: HELP! IS THERE SUCH A THING AS BIGGER FONT? Posted by IDK on 20 Dec 2005 at 6:52 AM
: You could look for QBasic libraries that would draw big fonts. I haven't seen any, but I haven't really looked for them either.

I've done 2, and found severals. One of them is only making the font bigger, but in hundreds of different ways. The other is an editor where you can design your own fonts, that's then compressed and saved to a file. Then it's possible to use it as usuall. It is as nice as this text.

Happy coding wishes
the one and only Niklas Ulvinge aka IDK




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.