old-www/HOWTO/Font-HOWTO/fontech.html

263 lines
7.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Font Technologies</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Optimal Use of Fonts on Linux"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Designer's Guide for Modern Good Looking Documents"
HREF="typography.html"><LINK
REL="NEXT"
TITLE="Getting Fonts For Linux"
HREF="getfonts.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Optimal Use of Fonts on Linux</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="typography.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="getfonts.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="fontech"
></A
>8. Font Technologies</H1
><P
>This section contains both non-usefull (nowadays) and usefull information about how font technology evolved, caracteristics of some of them, and the market dynamics that choosed the most widelly used ones.</P
><P
>Nowadays you probably won't find anymore <A
HREF="fontech.html#type1"
>Type 1</A
>, <A
HREF="fontech.html#type3"
>Type 3</A
> and <A
HREF="fontech.html#type42"
>Type 42</A
> fonts.</P
><P
>The bottom line is: today the de-facto font standard is True Type, Linux has strong support to it with the FreeType library, and sometimes you may need some <A
HREF="fontech.html#bitmap"
>bitmap fonts</A
> for screen, but never for printing.</P
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="bitmap"
></A
>8.1. Bitmap Fonts</H2
><P
>A bitmap is a matrix of dots. Bitmap fonts are represented in precisely this way -- as matrices of dots. Because of this, they are <EM
>device dependent</EM
> -- they are only useful at a particular resolution. A 75 DPI screen bitmap font is still 75 DPI on your 1200 DPI printer.</P
><P
>There are two types of bitmap fonts -- bitmap printer fonts, such as the <TT
CLASS="literal"
>pk</TT
> fonts generated by dvips, and bitmap screen fonts, used by X and the console. The bitmap screen fonts typically have a <TT
CLASS="literal"
>bdf</TT
> or <TT
CLASS="literal"
>pcf</TT
> extension. Bitmap screen fonts are most useful for terminal windows, consoles and text editors, where the lack of scalability and the fact that they are unprintable is not an issue.</P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="truetype"
></A
>8.2. TrueType Fonts</H2
><P
>TrueType fonts were developed by Apple. They made the format available to Microsoft, and successfully challenged Adobe's grip on the font market. True type fonts store the metric and shape information in a single file (usually one with a <TT
CLASS="literal"
>ttf</TT
> extension). Recently, font servers have been developed that make TrueType available to X. And PostScript and ghostscript have supported TrueType fonts for some time. Because of this, TrueType fonts are becoming more popular on linux.</P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="type1"
></A
>8.3. Type 1 Fonts</H2
><P
>The Type 1 font standard was devised by Adobe, and Type 1 fonts are supported by Adobe's PostScript standard. Because of this, they are also well supported under linux. They are supported by X and ghostscript. Postscript fonts have traditionally been the choice of font for anything on UNIX that involves printing.</P
><P
>Typically, a UNIX Type 1 font is distributed as an <TT
CLASS="literal"
>afm</TT
> (adobe font metric) file, and an outline file, which is usually a <TT
CLASS="literal"
>pfb</TT
> (printer font binary) or <TT
CLASS="literal"
>pfa</TT
> (printer font ascii) file. The outline file contains all the glyphs, while the metric file contains the metrics. </P
><P
>Type 1 fonts for other platforms may be distributed in different formats. For example, PostScript fonts for windows often use a different format (<TT
CLASS="literal"
>pfm</TT
>) for the metric file.</P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="type3"
></A
>8.4. Type3 Fonts</H2
><P
>These fonts are distributed in a similar manner to Type 1 files -- in groups of <TT
CLASS="literal"
>afm</TT
> font metrics, and <TT
CLASS="literal"
>pfa</TT
> files. While they are supported by the PostScript standard, they are not supported by X, and hence have limited use.</P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="type42"
></A
>8.5. Type 42 Fonts</H2
><P
>Type42 fonts are actually just TrueType fonts with headers that enable them to be rendered by a PostScript interpreter. Most applications, such as ghostscript and SAMBA handle these fonts transparently. However, if you have a PostScript printer, it may be necessary to explicitly create Type42 font files.</P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="T1vsTT"
></A
>8.6. Type 1 vs TrueType -- a comparison</H2
><P
>Despite the historical feuding between the proponents to Type 1 and TrueType fonts, both have a lot in common. Both are scalable outline fonts. Type 1 fonts use cubic as opposed to quadratic curves for the glyphs. This is in theory at least a slight advantage since they include all the curves available to TrueType fonts. In practice, it makes very little difference. </P
><P
>TrueType fonts have the apparent advantage that their support for hinting is better (Type 1 fonts do have hinting functionality, but it is not as extensive as that of TrueType fonts). However, this is only an issue on low resolution devices, such as screens (the improved hinting makes no discernable difference on a 600dpi printer, even at small point sizes.) The other point that makes this apparent advantage somewhat questionable is the fact that well hinted TrueType fonts are rare. This is because software packages that support hinting functionality are out of the budget of most small time designers. Only a few major foundries, such as Monotype make well hinted fonts available.</P
><P
>In conclusion, the main differences between TrueType and Type 1 fonts are in availability and application support. The widespread availability of TrueType fonts for Windows has resulted in webpages designed with the assumption that certain TrueType fonts are available. Also, many users have large numbers of TrueType fonts because they ship with the users Windows applications. However, on Linux, most applications support Type 1 fonts but do not have the same level of support for TrueType. Moreover, most major font foundries still ship most of their fonts in Type 1 format. For example, Adobe ships very few TrueType fonts. My recommendation to users is to use whatever works for your application, and try to avoid converting from one format to another where possible (because the format conversion is not without loss).</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="typography.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="getfonts.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Designer's Guide for Modern Good Looking Documents</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Getting Fonts For Linux</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>