home *** CD-ROM | disk | FTP | other *** search
- SmallFont Copyright (c) 1990 Thomas G. Hanlin III
-
-
-
-
- The SmallFont routines are protected by copyright. However, you may use them
- in your own programs free of charge. The SmallFont collection may be
- distributed under the following conditions:
-
- 1) All original files are included: CREATE.BAT, EXAMPLE.BAS, EXAMPLE.TXT,
- MAKELIBS.BAT, SMALLFNT.BAS, SMALLFNT.BI, and SMALLFNT.DOC.
-
- 2) No fee of over $10.00 may be charged for distribution. This applies
- specifically to physical copies and is not meant to prevent
- distribution by telecommunications.
-
- These routines are designed for use with QuickBASIC 4.x and/or BASCOM 6.x.
- They allow you to display small characters in CGA hi-res graphics mode
- (SCREEN 2), giving you a screen size of 106x33. This gives you 75% more
- space to play with and can be useful for occasions when you need to squeeze
- text into a small area of the screen.
-
- The displayed characters are indeed small, but reasonably legible. Lowercase
- characters are not supported and will be converted to their uppercase
- equivalents. Most of the normal symbols are supported, but graphics
- characters are not. The control codes 13 (carriage return), 10 (linefeed),
- and 8 (nondestructive backspace) are supported. Like the normal PRINT
- statement, going past the right edge of the screen causes wrapping to the
- next line, and going past the bottom of the screen causes scrolling. The
- print speed is reasonably quick even on a 4.77 MHz XT, although scrolling is
- a bit on the slow side.
-
- The provided MAKELIBS.BAT file will convert SMALLFNT.BAS into SMALLFNT.LIB
- and SMALLFNT.QLB files, which are libraries that you can use either from the
- command-line compiler or within the QuickBASIC environment. You may need to
- modify the "BQLB45" to "BQLB41" or "BQLB40", depending on which version of
- QuickBASIC you are using. If you have not set up a PATH to your BASIC
- compiler and a LIB setting for your library files, you must execute MAKELIBS
- in the subdirectory in which your BASIC compiler is stored.
-
- The CREATE.BAT file compiles the EXAMPLE.BAS program and links it with the
- SmallFont library that was created by MAKELIBS. Look at CREATE.BAT and
- EXAMPLE.BAS to see how they work.
-
- To use SmallFont routines with your program, all you need to do is INCLUDE
- the SMALLFNT.BI file at the top of your program (this declares the SmallFont
- routines for you) and link in the SmallFont library. If you are using the
- QuickBASIC environment, specify the library when you start up:
- QB /L SMALLFNT
-
- You must also DIMension an integer array in which the font will be stored:
- DIM SmallFont%(0 TO 320)
-
- The following routines are provided:
-
- InitSmallFont SmallFont%()
- SmallPrint SmallFont%(), Text$
- SmallLocate SmallFont%(), Row%, Column%
-
- InitSmallFont loads the small font from SMALLFNT.DAT.
- SmallPrint displays a string. Add CHR$(13)+CHR$(10) to the string if you
- want a carriage return and linefeed, since this is not automatic.
- SmallLocate sets the cursor position. The row may be 1-33 and the column may
- be 1-106.
-