<!-- This HTML file has been created by texi2html 1.4 on 05 Jan 95 -->

<TITLE>Frequently Asked Questions About Fonts - File Formats</TITLE>
Go to the <A HREF="FAQ.texinfo_13.html">previous</A>, <A HREF="FAQ.texinfo_15.html">next</A> chapter.<P>
<H1><A NAME="SEC34" HREF="FAQ.texinfo_toc.html#SEC34">File Formats</A></H1>
<P>
Many different kinds of files are available on the net.  These files
contain many different kinds of data for many different architectures.
Frequently, the extension (trailing end) of a filename gives a good
clue as to the format of its contents and the architecture that it was
created on.
<P>
In order to save space, most files on the net are compressed in one
way or another.  Many compression/decompression programs exist on
multiple architectures.
<P>
Multiple files and directories are often combined into a single
`archive' file.  Many archive formats perform compression
automatically.
<P>
<H2><A NAME="SEC35" HREF="FAQ.texinfo_toc.html#SEC35">File Format Extensions</A></H2>
<P>
<UL>
<P>
<LI><TT>.tar</TT>
<P>
Unix `tape archive' format.  Tar files can contain multiple files
and directories.  Unlike most archiving programs, tar files are
held together in a wrapper but are not automatically compressed
by tar.
<P>
<LI><TT>.Z</TT>
<P>
Unix `compress' format.  Compression doesn't form a wrapper around
multiple files, it simply compresses a single file.  As a result,
you will frequently see files with the extension .tar.Z.  This
implies that the files are compressed tar archives.
<P>
<LI><TT>.z</TT> <TT>.gz</TT>
<P>
GNU zip format.  GNU zip doesn't form a wrapper around
multiple files, it simply compresses a single file.  As a result,
you will frequently see files with the extension .tar.z or .tar.gz.  This
implies that the files are compressed tar archives.  Do not confuse
GNU Zip and PKZip or GNU Zip and Unix compress, those are three different
programs!
<P>
<LI><TT>.hqx</TT>
<P>
Macintosh `BinHex' format.  In order to reliably transfer Mac files
from one architecture to another, they are BinHex encoded.  This
is actually an ascii file containing mostly hexadecimal digits.
It is neither a compression program nor an archive format.
<P>
<LI><TT>.sit</TT>
<P>
Macintosh `Stuffit' archive.
<P>
<LI><TT>.cpt</TT>
<P>
Macintosh `Compactor' archive.
<P>
Like the .tar.Z format that is common among Unix archives, Macintosh
archives frequently have the extensions .sit.hqx or .cpt.hqx
indicating a BinHex'ed archive.
<P>
<LI><TT>.arc</TT>
<P>
PC `arc' archive.  This is an older standard (in PC terms, at least)
and has gone out of fashion.
<P>
<LI><TT>.zip</TT>
<P>
PC `zip' archive.  This is the most common PC archive format today.
<P>
<LI><TT>.arj</TT>
<P>
PC `arj' archive.
<P>
<LI><TT>.zoo</TT>
<P>
PC `zoo' archive
<P>
<LI><TT>.lzh</TT>
<P>
PC `lha/lharc' archive.
<P>
<LI><TT>.uue</TT>
<P>
`UUencoding' format.  In order to reliably transfer binary data across
architectures (or through email), they are frequently uuencoded.  This
is actually an ascii file.  It is neither a compression program nor an
archive format.
<P>
</UL>
<P>
<H2><A NAME="SEC36" HREF="FAQ.texinfo_toc.html#SEC36">Font Formats</A></H2>
<P>
Just as the are many, many archive formats, there are many different
<A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> formats.  The characteristics of some of these formats are
discussed below.  Once again, the file extension may help you to
determine the <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> type.  (On the Mac, the resource TYPE field is
(probably) a better indicator).
<P>
<UL>
<P>
<LI>PostScript Type 1 Fonts:
<P>
Postscript Type 1 fonts (Also called ATM (Adobe Type Manager) fonts,
Type 1, and outline fonts) contains information, in outline form,
that allows a postscript printer, or ATM to generate fonts of any
size.  Most also contain hinting information which allows fonts to
be rendered more readable at lower resolutions and small type sizes.
<P>
<LI>PostScript Type 3 Fonts:
<P>
Postscript type 3 fonts are an old outline <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> format that is not
compatible with ATM.  Most developers have stopped using this format
except in a few special cases, where special type 3 characteristics
(pattern fills inside outlines, for example) have been used.
<P>
<LI>TrueType Fonts:
<P>
Truetype fonts are a new <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> format developed by Microsoft with
Apple.  The rendering engine for this <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> is built into system 7
and an init, the Truetype init, is available for system 6 (freeware
from Apple).  It is also built into MS Windows v3.1.  Like
PostScript Type 1 and Type 3 fonts, it is also an outline <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A>
format that allows both the screen, and printers, to scale fonts to
display them in any size.
<P>
<LI><A HREF="FAQ.texinfo_17.html#GLOSS3">Bitmap</A> Fonts:
<P>
<A HREF="FAQ.texinfo_17.html#GLOSS3">Bitmap</A> fonts contain bitmaps of fonts in them.  This a picture of the
<A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> at a specific size that has been optimized to look good at that
size. It cannot be scaled bigger without making it look horrendously
ugly.  On the Macintosh, <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A> fonts also contain the <A HREF="FAQ.texinfo_17.html#GLOSS9">kerning</A>
information for a <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> and must be installed with both type 1 and
type 3 fonts.  Their presence also speeds the display of commonly
used <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> sizes.
<P>
</UL>
<P>
<H2><A NAME="SEC37" HREF="FAQ.texinfo_toc.html#SEC37">Font Format Extensions</A></H2>
<P>
<UL>
<P>
<LI><TT>.afm</TT>
<P>
Adobe Type 1 metric information in `ascii' format (human parsable)
<P>
<LI><TT>.bco</TT>
<P>
Bitstream compressed outline
<P>
<LI><TT>.bdf</TT>
<P>
Adobe's <A HREF="FAQ.texinfo_17.html#GLOSS3">Bitmap</A> Distribution Format.  This format can be converted
to the platform specific binary files required by the local X Windows
server.  This is a <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A> <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> format distributed in ASCII.
<P>
<LI><TT>.bez</TT>
<P>
Bezier outline information
<P>
<LI><TT>.chr</TT>
<P>
Borland stroked <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> file
<P>
<LI><TT>.ff, .f3b, .fb</TT>
<P>
Sun formats.  More info when I know more...
<P>
<LI><TT>.fot</TT>
<P>
MS-Windows TrueType format fonts
<P>
<LI><TT>.gf</TT>
<P>
Generic <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> (the output of TeX's MetaFont program (possibly others?))
<P>
<LI><TT>.fli</TT>
<P>
<A HREF="FAQ.texinfo_17.html#GLOSS6">Font</A> libraries produced by emTeX fontlib program.  Used by emTeX 
drivers and newer versions of dvips.
<P>
<LI><TT>.mf</TT>
<P>
TeX MetaFont <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> file (text file of MetaFont commands)
<P>
<LI><TT>.pfa</TT>
<P>
Adobe Type 1 Postscript <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> in ASCII format (PC/Unix)
I believe that this format is suitable for directly downloading to
your PostScript printer (someone correct me if I'm wrong ;-)
<P>
<LI><TT>.pfb</TT>
<P>
Adobe Type 1 PostScript <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> in ``binary`' format (PC/Unix)
Note: this format is not suitable for downloading directly to your
PostScript printer.  There are utilities for conversion between
PFB and PFA (see the utilities section of the FAQ).
<P>
<LI><TT>.pfm</TT>
<P>
Printer <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> metric information in Windows format
<P>
<LI><TT>.pk</TT>
<P>
TeX packed <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A> <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> file (also seen as .###pk where ### is a number)
<P>
<LI><TT>.pl</TT>
<P>
TeX `property list' file (a human readable version of .tfm)
<P>
<LI><TT>.ps</TT>
<P>
Frequently, any PostScript file.  With respect to fonts, probably
a Type3 <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A>.  This designation is much less `standard' than the
others.  Other non-standard extensions are .pso, .fon, and .psf
(they are a mixture of type 1 and type 3 fonts).
<P>
<LI><TT>.pxl</TT>
<P>
TeX pixel <A HREF="FAQ.texinfo_17.html#GLOSS3">bitmap</A> <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> file (obsolete, replaced by .pk)
<P>
<LI><TT>.sfl</TT>
<P>
LaserJet bitmapped <A HREF="FAQ.texinfo_17.html#GLOSS13">softfont</A>, landscape orientation
<P>
<LI><TT>.sfp</TT>
<P>
LaserJet bitmapped <A HREF="FAQ.texinfo_17.html#GLOSS13">softfont</A>, portrait orientation
<P>
<LI><TT>.sfs</TT>
<P>
LaserJet scalable <A HREF="FAQ.texinfo_17.html#GLOSS13">softfont</A>
<P>
<LI><TT>.tfm</TT>
<P>
TeX <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> metric file.  Also an HP Tagged <A HREF="FAQ.texinfo_17.html#GLOSS6">Font</A> Metric file.
<P>
<LI><TT>.vf</TT>
<P>
TeX virtual <A HREF="FAQ.texinfo_17.html#GLOSS6">font</A> which allows building of composite fonts (a <A HREF="FAQ.texinfo_17.html#GLOSS4">character</A>
can be composed of any sequence of movements, characters (possibly 
from multiple fonts) rules and TeX specials)
<P>
<LI><TT>.vpl</TT>
<P>
TeX `property list' (human readable) format of a <TT>.vf</TT>
<P>
</UL>
