beautypg.com

Datamax-O'Neil VMP SERIES AN-16 (Single Byte Character Set Font File Format) User Manual

Page 7

background image








FONT FILE EXAMPLE – VERSION 1.0 PROPORTIONAL:

Since the file must be in binary, it is often easiest to create using an assembler. The following example shows the header,
and two of the characters in a form ready to assemble. The object code output, then, can be sent to the printer using the
Oneil WINDOWS configuration program, or a special command.

dl

PT10B_LINK

; Value is reset internally and can be any 4 byte number

db

"1.0"

; font version number (1.0 flags this header and respresentation)

db

047H

; code resulting from mod 256 summation of name of font below

db

"PT10B"

; name of this font

db

'E'

; single letter used as an alternate to refer to this font

db

05d

; use 05 for proportional text

dw

0FFFFH

; (ABSOLUTE = 12) number of dots wide for this font

dw

20d

; number of dots high for this font

db

02d

; number of bytes in each dot row of each character

dw

40d

; number of bytes in each character represented in this font

db

'A'

; The letter "A" is first ASCII character represented

db

'B'

; The letter "B" is last ASCII character represented

db 00d

;

reserved

db

'1'

; USER font version number

db

"04/30/96"

; USER font creation date

db

"2 CHARS EXAMPLE FONT"

; USER 20 character description

; BIT MAPPED PATTERN OF LETTER "A":

dw

13d

; character is 11 wide plus 2 whitespace

db 006h,000h

db 006h,000h

db 00fh,000h

db 00fh,000h

db 01fh,080h

db 019h,080h

db 039h,0c0h

db 03fh,0c0h

db 07fh,0e0h

db 060h,060h

db 0e0h,070h

db 0c0h,030h

db 0c0h,030h

db 0c0h,030h

db 000h,000h

db 000h,000h

db 000h,000h

db 000h,000h

db 000h,000h

db 000h,000h