Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ vswap(1) — SunOS 4.0

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 ]

AVAILABILITY

This command is available with the Versatec Printer software installation option.  Refer to Installing the SunOS for information on how to install optional software. 

DESCRIPTION

Without the -r option, vswap translates its standard input (which must be a vfont(5) 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 system 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 machine using a Motorola 68000-family processor or a SPARC processor will expect the reverse format.  vswap can be used to convert font files created on a VAX to the format required to use them on Suns.  (All Suns use the same vfont format, regardless of the native byte order of the processor, including Suns that use the Intel 80386 processor.  Programs that will be run on Suns that use the Intel 80386 processor must be aware of this, and convert the machine-dependent elements when they read or write vfont files.)  It can also convert Sun-format font files to VAX format (with the −r option). 

SEE ALSO

troff(1), vfont(5)

BUGS

A machine-independent font format should be defined. 

Sun Release 4.0  —  Last change: 10 January 1988

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