Dec 052017
 
A lib file made and tested in QuickBasic 4.5 for truely scalable fonts in basic brought into being by the maker of Galactic Battles(tank ga battlish game).
File BASFONT1.ZIP from The Programmer’s Corner in
Category BASIC Language
A lib file made and tested in QuickBasic 4.5 for truely scalable fonts in basic brought into being by the maker of Galactic Battles(tank ga battlish game).
File Name File Size Zip Size Zip Type
BASFONT.BI 152 110 deflated
BASFONT.LIB 64015 8935 deflated
BASFONT.QLB 40632 7146 deflated
BASFONT.TXT 3784 1388 deflated
TPCREAD.ME 199 165 deflated

Download File BASFONT1.ZIP Here

Contents of the BASFONT.TXT file


BASFONT

This software creates truely scaleable fonts for basic programs. It is free
to anyone who wishes use of it. It has only been tested on my computer in
QuickBasic 4.5.

Unzip BASFONT in your QuickBasic directory.

To use BASFONT, you must first start QuickBasic with the with the library
swich. To do so, type

QB /L BASFONT.QLB

at your dos prompt. Now in QuickBasic you must include the BASFONT library.
To do this, include the line

'$INCLUDE: 'BASFONT.BI'

before any excutable statements in your program.

Now you can use BASFONT. It includes two commands that allow you to print
text in any desired size and create new characters or edit existing ones.
The commands are:

GPRINT : Prints existing characters and/or newly made ones
NEWCHAR : Creates new characters and edits existing ones
for use with GPRINT

GPRINT

Using GPRINT with existing characters is very easy. The existing characters
are A-Z, a-z, and 0-9. To print any of these characters, type the following
command, subing in the correct things for the variables

GPRINT "text", XCoordinate, YCoordinate, XScale, YScale

text - What you would like printed to the graphics screen. Characters other
than A-Z, a-z, and 0-9 must be created by NEWCHAR before using them.

XCoordinate - The horizontal coordinate of the upper-left hand corner
of the text.

YCoordinate - The vertical coordinate of the upper-left hand corner
of the text.

XScale - the horizontal scale of the text in pixels. Must be at least 10.

YScale - the vertical scale of the text in pixels. Must be at least 14.


NEWCHAR

Using NEWCHAR is more complicated than using GPRINT, but can still be used
quickly and easily once you get the hang of it.

All characters in BASFONT consist of a five by seven rectangle that can hold
one of ten types of scaleable shapes. These shapes are as follows

SHAPE 0 SHAPE 1 SHAPE 2 SHAPE 3 SHAPE 4 SHAPE 5

Blank




SHAPE 6 SHAPE 7 SHAPE 8 SHAPE 9






To create a font, you must decide to fill the thirty-five spaces with these
shapes. Then make a string containing the corisponding numbers in order
going left to right, top to bottom. Now that string can be used in the
NEWCHAR command. To do so, try something like this

NEWCHAR "new character", "character string"

new character - the character used in GPRINT to represent the new character.

character string - the string used to tell GPRINT what the character looks
like. An error will be generated if this string contains
something other than numbers or it is not 35 characters
long.


EXAMPLE

'$INCLUDE: 'BASFONT.BI' 'INCLUDE THE BASFONT LIBRARY
SCREEN 1 'SET THE SCREEN MODE (USER DEFINED)
NewChar "!", "00100001000010000000001000000000000" 'CREATE NEW '!' CHARACTER
GPrint "This was done in BASFONT!", 10, 60, 10, 30 'PRINTS THE TEXT



 December 5, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)