FontEditDoc.tioga
Michael Plass, September 3, 1985 11:59:12 am PDT
FontEdit
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
FontEdit
Michael Plass
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: Provides tools and commands for editing raster fonts, and other forms of bitmaps.
Created by: Michael Plass
Maintained by: Michael Plass <Plass.pa>
Keywords: Font, Bitmap, Edit, Widths, Metrics, Bold, Italic, Stipple, SampledBlack
XEROX Xerox Corporation
Palo Alto Research Center
3333 Coyote Hill Road
Palo Alto, California 94304
For Internal Xerox Use Only
Executive commands:
FontEdit
foo.ks (or foo.strike or foo.ac)
will make a tool to edit the named file.
FontBold output ← input
synthesizes a bold font.
FontSlant output ← input
synthesizes a slanted font.
FontMerge
<outputFile> ← <inputFile1> <CharSpec1>; <inputFile2> <CharSpec2>; . . .
will make a new font file by selecting characters from old ones.
<outputFile> is the output file name. The extension (.ac, .ks or .strike) is used to figure out what format to make the new file.
<inputFileN> is the name of an existing font file.
<CharSpecN> is the keyword CHARS (or CHAR), followed by a list of (Cedar-style) characters or subranges of characters; the keyword DEFAULT may be used to specify the default character.
Commas, spaces, or tabs may be used to separate items in the command line.
The semicolons are optional, unless needed to prevent a remote file name from looking like a subrange. The keyword FONT may be used in place of the semicolon (in command files, for example).
Example: FontMerge new.ks ← one.strike CHARS ['a..'z]; FONT two.strike CHARS ['0..'1], ['A..'Z], '\003 three.strike CHAR '?; four.ks CHAR DEFAULT;
FontWidthsCopy output ← input
copies the widths from the input to the output.
SDtoSF output ← input
Converts an SD format file to an SF (spline text) format file.
MakeRasterFont output ← fontName size [rotation] [bitsPerInch]
Converts a UnifiedFont to a raster font.
fontName is the full hierarchical name (i.e., Xerox/Pressfonts/Timesroman/MRR)
size is in pixels
rotation is in degrees
bitsPerInch is only used for AC fonts
output file format is derived from the output name
StippleEdit foo.ais
will make a tool to edit the named AIS file, which must be a bitmap.
The user interface is unsatisfactory for large bitmaps, i.e., bigger than about 800 square.
FontEdit Tool Description:
Menu Items:
Undo — Undo the edits to the current character.
Get — Load the file named in the current selection.
Store
— Store the file named in the current selection
.
The file format (ac, ks or strike) is deduced from the file name. Storing a strike font may cause the origins and/or widths of some characters to change in order to avoid kerning. Storing a ks or strike font sets the y components of the widths to zero, and rounds the x components to integers.
Save — Store the current file.
Char — Edit the character named in the current selection.
Next/Prev — Left (right) click to move to the next (previous) character in collating sequence.
Text — Sets the sample text to either the current selection (left click), a default string, (middle click), or consecutive characters starting 2 before the current character (right click).
Current text display:
Shows some sample text in the font being edited. Left click here to select a new character to edit. Shift-Left click to copy a character to the current buffer.
Current character display:
Shows a big version of the character being edited. Edits are reflected in the text display.
Left button paints black.
Right button paints white.
Control-left moves the origin (reference point).
Control-right controls the width vector.
The width vector can only be changed to take on integral values. Non-integer widths will be preserved if left unedited.
StippleEdit Tool Description:
Menu Items:
Reset — Get the bits from the file again.
Get — Load the bits from the AIS file named by the selection.
Store — Store the bits into the AIS file named by the selection.
Save — Save the bits into the AIS file named by the caption.
Bounds — Set the boundaries according to the crosshairs.
Fill — Fill the rectangle selected by the crosshairs with black/invert/white, depending on the mouse button.
Tile — Tile the rectangle selected by the crosshairs with the stipple from the AIS file named by the selection. The tile will be painted in replace/xor/or mode, depending on the mouse button.
Rotate — Rotates the bitmap 90 degrees.
Flip — Flips the bitmap horizontally.
Bitmap display:
Shows a big version of the bitmap being edited.
Left button paints black.
Right button paints white.
Control-left moves the origin crosshair (the bigger one).
Control-right controls the width vector (the smaller one).