Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ vswap(1) — SunOS 3.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

troff(1)

vfont(5)

VSWAP(1)  —  USER COMMANDS

NAME

vswap − convert a foreign font file

SYNOPSIS

/usr/lib/vswap [ −r ]

DESCRIPTION

Note:Optional Software (Versatec Printer Option).  Refer to Installing UNIX on the Sun Workstation for information on how to install this command. 

Without the -r option, vswap translates its standard input (which must be a vfont file in the reversed-byte order) into a locally correct vfont file on its standard output.  With the -r option, vswap translates its standard input (which must be a vfont file in the local-byte order) into a byte-reversed vfont file on its standard output. 

The UNIX vfont representation for fonts is a binary file containing machine-dependent elements — short (16-bit) integers, in particular.  There are (at least) two common ways of representing a 16-bit integer.  A program compiled on a VAX will expect the VAX format, while the same program compiled on a Motorola 68000 will expect 68000 format.  Vswap can be used to convert font files created on a VAX to the format required to use them on the Sun.  It can also convert Sun-format font files to VAX format (with the −r option).  Since the font files are in the byte order of the local machine, programs which access the font files don’t need to be concerned with byte-swapping issues.  This could be considered a bug. 

SEE ALSO

troff(1), vfont(5)

BUGS

A machine-independent font format should be defined. 

Sun Release 3.2  —  Last change: 17 April 1986

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