Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ defrasterfo(3) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

defrasterfont(3)  —  Silicon Graphics R1c

NAME

defrasterfont - define a raster font

SYNOPSIS

C
defrasterfont(n, ht, nc, chars, nr, raster)
short n, ht, nc, nr;
Fontchar chars[];
Byte raster[];

FORTRAN
subroutine defras(n, ht, nc, chars, nr, raster)
integer*2 n, ht, nc, chars(4,nc), nr
character raster(nr)

Pascal
procedure defrasterfont(n, ht, nc: Short; var chars: Fntchrarray;
nr: Short; var raster: Fontraster);

DESCRIPTION

Defrasterfont defines a raster font and has six arguments.  The first two are n, an index into the font table, and ht, an integer specifying the maximum height, in pixels, of characters in the font.  The index n becomes the font’s internal name.  Nc gives the number of characters in the font and thus the number of elements in the chars array.  Chars contains a description of each character in the font.  The description includes the height and width of the character in pixels, the offsets from the character origin to the lower left corner of this character’s bounding box, an offset into the array of rasters, and the amount to add to the current character x position after drawing the character.  Raster is an array of nr bytes of bitmap information.  It is a one-dimensional array of mask bytes, ordered left to right and then bottom to top.  Mask bits are left-justified in the character’s bounding box. 

To replace a raster font, define the new one to have the same index as the old one.  To delete a raster font, define a font with no characters with the same index.  That is, call defrasterfont(n, 0, 0, 0, 0, 0). 

SEE ALSO

charstr, defobjfont, font

NOTE

This command can only be used in immediate mode. 

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026