Package: PressFontIO Filed on [Indigo]<ISL>Documentation>PressFontIO.Tioga
Maintainer: Michael Plass
Date: December 2, 1982
DF file: [Indigo]<ISL>Top>PressFontIO.DF
Purpose: This package provides routines to read some of the various Press-style font formats (ac, sd, widths), and for writing .sf (spline font) format files, callable either through JaM or directly from a Cedar program.
Mesa interfaces:
PressFontReader - For reading ac, sd, or widths format font files.
There is currently no mesa interface for the sf writing function.
JaM functions:
PressFontReaderJaM
PressFont.Open <filename> -> . Opens a font file, and selects the first font in it.
PressFont.Close <filename> -> .
PressFont.DrawSplineChar <asciiCode: integer> -> . Executes JaM ops to draw the character.
The font must be an .sd font. JaM objects called .width and .bbox are executed to give the width and bounding box.
PressFont.DrawRasterChars <string> -> . Draws the chars starting at cp, at native size. Must be an ac font.
PressFont.DrawChars <string> -> . Draws the chars, one em per unit.
PressFont.CharDimensions <asciiCode: integer> -> <widthX> <widthY> <minX> <minY> <maxX> <maxY>.
PressFont.AllocateBitmap  -> . Allocates a bitmap large enough to use for the current raster font, and makes a context for it.
PressFont.DrawBitmap  -> . Draws the current bitmap.
PressFont.GetBit <i> <j> -> <bit: integer>.
PressFont.StoreBit <bit: integer> <i> <j> -> .
PressFont.UseBitmap  -> . Points TJaMGraphics at the bitmap.
PressFont.UseScreen  -> . Points TJaMGraphics at the screen.
PressFont.WriteAISTemp  -> . Writes the current bitmap on AISTemp.ais
PressFont.BitmapOrigin  -> <x> <y> . Tells the character origin of the bitmap.
PressFont.BitmapSize  -> <width> <height> . Tells the size of the bitmap.
SplineFontWriterJaM
SF.Open <filename> -> .
SF.Family <family: string> -> . sets the family for subsequent DrawChar operations.
SF.Face <face: string> -> . sets the face for subsequent DrawChar operations.
SF.Origin <x: number> <y: number> -> . says what the character origins are.
SF.Quad <baselineSpacing: number> -> . says what the units are.
SF.Close  -> . closes .sf file.
SF.Char <ascii code: integer> <widthx: number> <widthy: number> -> . Takes the current path and writes it out as a character in .sf format.