home *** CD-ROM | disk | FTP | other *** search
-
- ┌───────────────────────────────────────────────────────────────┐
- │ WESTFORD CUSTOM PC/FX ·■· VGA FONT KIT ·■· 4/15/93 │
- │ CIS: 76470,2417 ┌─────────────────────────────────────────────┘
- │ 508-692-8163 ┌──┘
- └──────────────┘
-
- ■ PURPOSE ■
- To provide all software necessary (except for PB and the
- assembler) to create directly linkable, custom VGA text mode
- fonts
-
- ■ CONTENTS ■
- COM2DATA.BAS | from: Westford Custom PC/FX
- FONT_KIT.DOC | this file
- FONTCOMS.ZIP | selection of usable font files
- FONTEDIT.COM | from: Michael Medford (PC Magazine utility)
- FONTEDIT.DOC
- MAKEOBJ.BAS | from: Spectra Software
-
- ■ TO USE ■
- Used together, the utilities contained in VGA FONT KIT make
- possible linkable OBJs that can be included in any program running
- in text mode on a system equipped with a VGA graphics card. The
- process for creating a new, usable font (contained, for example,
- in NEWFONT.OBJ) involves the following steps.
-
- CREATE USE
- ╒═══════════════════╤═════════════════╕
- │ 1. NEWFONT.COM │ FONTEDIT.COM │
- │ 2. NEWFONT.F16 │ COM2DATA.BAS │
- │ 3. NEWFONT.ASM │ MAKEOBJ.BAS │
- │ 4. NEWFONT.OBJ │ MASM/TASM │
- ╘═══════════════════╧═════════════════╛
-
-
- TO CREATE NEWFONT.COM:
- FONTEDIT.COM (the PC Magazine utility) generates a file that
- contains both font byte data as well as executable code. Once
- the font is designed with FONTEDIT, executing NEWFONT.COM
- provides a fast, simple way to see the font on-screen at the
- command line. Doing so also facilitates choosing from among
- available fonts.
-
- TO CREATE NEWFONT.F16:
- COM2DATA extracts from NEWFONT.COM the font byte data, which is
- written to the data file NEWFONT.F16. COM2DATA will accept a
- command line argument specifying the executable font file
- (com2data newfont.com). If no argument is provided, the program
- prompts for the name of the executable font file.
-
- TO CREATE NEWFONT.ASM:
- MAKEOBJ accepts a command line argument (makeobj newfont.f16) or
- prompts for the name of the font data file. The font data is
- incorporated into NEWFONT.ASM.
-
- TO CREATE NEWFONT.OBJ:
- Assemble NEWFONT.ASM with MASM or TASM.
-
- TO USE NEWFONT.OBJ:
- Use the following metastatements.
- $LINK NEWFONT.OBJ
- DECLARE SUB NEWFONT ()
- Then call the font.
- call newfont()
-
-
- ■ RESTORING DEFAULT ■
- When ending and cleaning up after a program that has used a
- custom font, a simple, code-efficient method for resetting the
- default VGA 8X16 fonts is to use the following code.
-
- ASM MOV AX, &H1104 ;ah=character generator, al=8x16 w/reset
- ASM XOR BL,BL ;bl=mem block destination (0)
- ASM INT &H10
-
-
- ── end font_kit.doc──
-