QBFonts.txt
Brief notes on each of the subroutines in QBFonts.bas

***** The most important stuff *****
(Read this if nothing else)
-CONST PROGRAMNAME = "QBFonts.BAS"
 Do Not forget to set this constant!
-Use a ~ at the end of text to indicate staying
 on the same line.  Use only with left justified text.
************************************

-Constants used:
 CONST LEFT = 1, CENTER = 2, RIGHT = 3
 CONST CTHRU = -1, DEFAULT = -999
 CONST FALSE = 0, TRUE = -1

-QBFdefault ()
 Sets color, window width, line spacing, word spacing, 
 letter spacing and justification to default. 

-QBFfontpath (Path$)
 Use this sub to define where the fonts reside.
 e.g. QBFfontpath c:\

-QBFopen (font$, File)
 Opens a QBF file
 font$ is the name (without .QBF extension please)
 File is the reference number (from 1 to 256)
 It will close that file first.

-QBFjustify (JustifyType)
 Sets justify to left right or center
 APPLICABLE CONSTANTS:
	left, right, center, default

-QBFletterspacing (Spacing)
-QBFwordspacing (Spacing)
-QBFlinespacing (Spacing)
 Sets line, word and letter spacing.
 APPLICABLE CONSTANTS:
	default

-QBFselectfont (FontID)
 Chooses a font.  FontID must be the number of a QBFopened QBF file.

-QBFtextwindow (x1, y1, x2, y2)
 Defines the area you wish the text to be shown in.
 APPLICABLE CONSTANTS:
	default

-QBFnewline (text$)
 Dont worry about this.

-QBFprintwrap (text$)
 Like QBFprint, but utilising word wrap.

-QBFprint (text$)
 Duh!
 *** Use a ~ at the end of text to indicate staying
 on the same line.  Use only with left justified text. ***

-QBFcolor (Fore, Back)
 Sets the foreground and background color.  Either may be see-through.
 QBFprint is quicker with a see-through background color.
 APPLICABLE CONSTANTS:
	cthru
 
-QBFbackoneline (Side, Down)
 This sub was created so that fx were easier to do.
 ***Whilst down is reletive to current cursor position, side
 is relative to justified cursor position***

-QBFlines.addline (Row)
 Used for underlining + strikethru
 Adds a line in specified row.

-QBFlines.removeline (Row)
 Removes a line.

-QBFlines.removeall ()
 Removes all lines.

-FUNCTION QBFlength (text$)
 Returns the pixel length of a peice of QBF text.

-DECLARE SUB AAA.SAVEinitialise ()
 Use this sub to return the name of the path in which Finder.Dat
 resides, into SAVEDpath
 e.g. 
 AAA.SAVEinitialise      'SAVEDpath now contains the path name
 QBFfontpath SAVEDpath   'Set the QBF path to SAVEDpath
 (The AAA. prefix forces it to the start of the file so the saver
 bytes take less time to find)

-DECLARE SUB SAVEinputpathtofile (a$)
-DECLARE FUNCTION SAVEfind (Path$)
-DECLARE FUNCTION SAVEgetpath$ ()
 Used by AAA.SAVEinitialise

-CONST PROGRAMNAME = "QBFonts.BAS"
 Do Not forget to set this constant!

-DEMOstart ()
-DEMOfonttypes ()
-DEMOlines ()
-DEMOjustify ()
-DEMOprintwrap ()
-DEMOeffects ()
 Show the QBFonts in action.


-Variables used:
 justify AS INTEGER
 linecontinue AS INTEGER  (Boolean)
 letterspacing AS INTEGER
 wordspacing AS INTEGER
 linespacing AS INTEGER
 currentfont AS INTEGER   (File ID)
 fontpath AS STRING
 modefound AS INTEGER     (For error handler)    
 toside AS INTEGER, below  AS INTEGER
 cursorX AS INTEGER, cursorY AS INTEGER
 forecolor AS INTEGER, backcolor AS INTEGER
 windowX1 AS INTEGER, windowX2 AS INTEGER
 windowY1 AS INTEGER, windowY2 AS INTEGER
 fontlines(10) AS INTEGER (Bitwise line expresion)