\documentclass[letterpaper,english]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{XFree86 ¦rÅé¬ü¤Æ Mini HOWTO}
\author{§@ªÌ: Doug Holland, \nameurl{mailto:meldroc@frii.com}{meldroc@frii.com}\\ 
­×¼W: Hal Burgiss, \nameurl{mailto:hburgiss@bellsouth.net}{hburgiss@bellsouth.net}\\ 
Ä¶ªÌ: Yu-Chia Chang, \nameurl{mailto:joezhang@ms10.hinet.net}{joezhang@ms10.hinet.net}}
\date{v1.5.1, 1 Aug. 2000.
Â½Ä¶¤é´Á: 24-31 Aug. 2000}
\abstract{¦p¦ó§ïµ½Áà­®©MÃø¥H¾\Åªªº X Window ¦r«¬¡C¦³³\¦h§ïµ½ XFree86 ³B²z¦r«¬ªº§Þ¥©¡A¥]§t¦r«¬¦øªA¾¹(fonts server)¡ATrueType ¦r«¬¡A Netscape ©M¬ÛÃöªº¥DÃDµ¥¡C}


\begin{document}
\maketitle
\tableofcontents

\section{Â²¤¶}

¦b§Ú¥²¶·³B²zªº¤@°ï°Q¹½¨Æ¤¤¡A¦³¤@¶µ´N¬OÁV³zªº X ¹w³]¦r«¬©M¦r«¬³]©w (³o¸Ì§Ú±M«ü \nameurl{http://www.xfree.org}{XFree86}¡A¨ä¥Lªº X ¤]³\¤ñ¸û¦n)¡C¦³¨Çµ{¦¡¹w³]¨Ï¥Î©T©w¼e«×¦r«¬(fixed width fonts)¡A¨ä¹ê¤W¥iÅÜ¼e«×¦r«¬(variable width fonts)¸û¬°¾A·í¡C¦³¨Çµ{¦¡¨Ï¥Î¤p¨ì¤£¥i«äÄ³¥BÃø¥H¿ë»{ªº¦r«¬¡C¦ñÀH XFree86 ¦Ó¨Óªº¦r«¬®Ú¥»¤£¾A¥Î¡C¥¦ªº½T¦³ÁÙºâºë½oªº courier ¦r«¬¡A¦ý¬O¥¦ªº Times ©M Helvetica ¥u¬OÂ²³æªºÂI°}¦r¡A·íÁY©ñªº®É­Ô´N²£¥Í¿÷¾¦ª¬¡C

³o¥÷ HOWTO ¹Á¸Õ»¡©ú¦p¦ó½Õ¾ã¦U¦¡¦U¼Ëªº¦r«¬³]©w¡A¦p¦ó¦w¸Ë·s¦rÅé¡A©M¨ä¥L¥i¥H¤j´T§ïµ½ X Window ¦r«¬ªº¥~Æ[©M¼W¥[¥iÅª©Êªº¤èªk¡C³o¬OÂÇ¥Ñ½Õ¾ã XF86Config ÀÉ¤¤ªº FontPath¡A¦b startx ©Î xdm (©MÃþ¦üªº¹Ï§Îµn¿ý¤¶­±¡^¥[¤W X server ©R¥O¦C¿ï¶µ(command line options)¡A¥[¤J·sªº¦r«¬¡A¦w¸Ë TrueType ¦r«¬¦øªA¾¹©M¦r«¬¡A©M¨Ï¥Î K Desktop Environment 1.1 ªº¥\¯à¨Ó½Õ¾ã³\¦hÀ³¥Îµ{¦¡ªº¦r«¬³]©w¡A¥]§t³]©wÅý«D KDE À³¥Îµ{¦¡ªºÃC¦â©M¦r«¬¯à°÷»P KDE ¤@­P¡C

Åwªïµû½×¡A§ó¥¿¡A¼W­×©M§åµû¡C§A¥i¥H¦b \nameurl{mailto:meldroc@frii.com}{meldroc@frii.com} ©M \nameurl{mailto:hburgiss@bellsouth.net}{hburgiss@bellsouth.net} Ápµ¸¨ì§@ªÌ¡C

Ä¶«ö¡G­Y¹ï¤¤Ä¶¤å¦³¥ô¦óªº«ØÄ³©M§ó¥¿¡AÅwªï¼g«H§i¶D§Ú¡C§ÚªºÁpµ¸¤è¦¡ \nameurl{mailto:joezhang@ms10.hinet.net}{joezhang@ms10.hinet.net}¡C


\subsection{ºD¨Ò}

¦b¤@¨Ç©R¥Oªº¨Ò¤l¤¤¡A"\#" ²Å¸¹³q±`¬Oªí¥Ü¥uÅý¶W¯Å¨Ï¥ÎªÌ°õ¦æ¡A¦Ó "\$" «hªí¥Ü¤@¯ëªº¨Ï¥ÎªÌ´N¥i¥H°õ¦æ¡C

¦b¨Ò¤l¤¤¡A/usr/local/share/fonts/ttfonts ¬O§Ú­Ì TrueType ¦r«¬ªº¥Ø¿ý¡C³o¨Ã¤£¬O¤@­Ó¯S®í¦ì¸m¡A§A¤]¥i¥HÅÜ§ó¥¦¡C

"xfs" ¦b³o¸Ì¬O«ü Redhat 6.x ¤¤¥]§tªº xfs¡C¦b¬Y¤@¤è­±¡A¥¦©M¤@¯ë«üªº XFree86 xfs ¦³«Ü¤jªº¥X¤J¡C

"Netscape" «üªº¬O¾ã®Mªº Netscape µ{¦¡¡C¥]§t: Communicator, Navigator, Messenger µ¥¡CMozilla ªº¦r«¬ªº³]©w¬O¬Û¦Pªº¡C


\subsection{Change log}

\begin{itemize}
\item 0.1:  Feb. 21, 1999: ²Ä¤@¦¸¤½§G¡C
\item 0.11: Feb. 27, 1999: ©ñ¤J copyright «OÅ@§ÚªºÅv§Q¡C
\item 0.12: Jun. 10, 1999: ©ñ¤J½Ð¨D´©§U¡C
\item 0.20: Sep. 14, 1999: ¬° Redhat ªº¨Ï¥ÎªÌ¥[¤J¦³Ãö©ó xfs ªº¤@¸`¡C·PÁÂ Hal Burgiss ªº°^Äm¡C 
\item  1.0: Nov. 23, 1999: ±N¤å³¹Âà¬° SGML ®æ¦¡¡A°e¤J Linux Document Project¡C±N½Ð¨D´©§Uªº³¡¥÷²¾°£¡C
\item  1.5: July 25, 2000: ¥[¤J¤F¦³Ãö fonts.alias, XFree86 4.x ©M xfsft ªº·s³¹¸`¡AÁÙ¦³¤@¨Ç­×§ï©M¼W¸É¡C
\end{itemize}



\subsection{·sª©}

1.5 ª©¥]§t¤FÃö©ó xfsft, fonts.alias ©M XFree86 4.x ªº·s³¹¸`¡C°£¦¹¤§¥~¡A¤]¼W¥[¤F¤@­Ó·sªº³¹¸`¡A¬OÃö©ó¤@¨Ç³sµ²©M°O¿ý¡A¨Ã­«¼g xfs ªº¨º¸`¡CÁÙ¦³¤@¨Ç­×§ï©M¼W¸É¡C

¦b 1.51 ª©¤¤¡A·PÁÂ Kristin Aanestad ¹ï¥»¤å¥óªº¥Øªº´£¥X«ØÄ³¡C

¥»¤å¥óªº·sª©¥i¥H¦b \nameurl{http://feenix.eyep.net/ldp/fdu/index.html}{http://feenix.eyep.net/ldp/fdu/index.html} §ä¨ì¡C


\subsection{Copyright}

Copyright  1999 by Doug Holland.

Ä¶«ö: ¬°´L­«§@ªÌ­ì·N¡A³o³¡¥÷¤£Ä¶ (¨ä¹ê¬O°½Ãi°Õ)¡C

   
Unless otherwise stated, Linux HOWTO documents are copyrighted by their respective authors. Linux HOWTO documents may be reproduced and in whole or in part, in any medium physical or electronic, long as this copyright notice is retained on all copies. Commercial is allowed and encouraged; however, the author would to be notified of any such distributions.

All translations, derivative works, or aggregate works incorporating Linux HOWTO documents must be covered under this copyright notice. is, you may not produce a derivative work from a HOWTO and impose restrictions on its distribution. Exceptions to these rules be granted under certain conditions; please contact the Linux coordinator for more information.

In short, we wish to promote dissemination of this information through many channels as possible. However, we do wish to retain copyright the HOWTO documents, and would very much like to be notified of any to redistribute the HOWTOs, this one in particular! Web page are free to link to this HOWTO without restriction, though the would appreciate an email informing him of this, just so he can his ego by knowing who else reads and links to this document.

Many of the terms mentioned in this document are trade names. Unless stated, all trademarks are property of their respective owners.


\subsection{­PÁÂ}

¥»¤å¥ó¥Ñ Doug Holland ©Ò¼¶¼g\\ 
Email: \nameurl{mailto:meldroc@frii.com}{meldroc@frii.com}\\ 
WWW: \nameurl{http://www.frii.com/~meldroc/}{http://www.frii.com/\~{}meldroc/}

¥Ñ Hal Burgiss §ó·s\\ 
Email: \nameurl{mailto:hburgiss@bellsouth.net}{hburgiss@bellsouth.net}\\ 
WWW: \nameurl{http://feenix.eyep.net/}{http://feenix.eyep.net/}

¯S§O·PÁÂ
\begin{itemize}
\item \nameurl{http://www.xfree.org}{XFree86 Project} ªºµo®iªÌ©^Äm¥X¥L­Ìªº®É¶¡©Mºë¤O¡C°£¦¹¤§¥~¡AJuliusz Chroboczek ªº xfsft¡A©M XFree86 4.x Åý TrueType ¶i¤J¹ê¥Î¶¥¬q¡C
\item ·PÁÂ¦r«¬¤Ñ¤~ Kristin Aanestad ¦b xfs, TrueType, Netscape ©M¯S§O¬O fonts.alias µ¥³¹¸`ªº°^Äm¡C§A¥i¥H¦b \nameurl{http://home.c2i.net/dark/linux.html}{Some Linux for Beginners} §ä¨ì§ó¦h Kristin ¦b¨ä¥L¥DÃDªº¸ê®Æ¡C
\item ¦b \nameurl{news:comp.os.linux.x}{comp.os.linux.x} ªº¤H­Ì¡A¥L­Ì¦b§Ú­è¶}©l¬ã¨s³o¨Çªº®É­Ô¹ï§Ú¦ù¥X´©¤â¡C
\item ³ÌªìÅý³o©Ò¦³¤@¤ÁÅÜ¬°¥i¯àªº Linux ªÀ¸s¡C
\item Microsoft ©M Apple: ¥L­Ì´£¨Ñ¤F¦r«¬¡A¬ü¤Æ¤F§Úªº®à­±¡C
\end{itemize}



\section{X Server ªº³]©w}

¤U­±¬O¤@¨Ç«Ü®e©ö´N¥i¥HÅý X ªí²{§ó¦nªº¨BÆJ:


\subsection{³]©w FontPath}

·Q­n¸Ñ¨M¦r«¬ªº°ÝÃD¡A­º¥ý±o¬Ý¬Ý {\ttfamily XF86Config} ÀÉ¡C(³q±`©ñ¦b {\ttfamily /usr/X11/lib/X11/XF86Config} ©Î {\ttfamily /etc/X11/XF86Config})¡C­Y§AÁÙ¨S²q¥X¨Óªº¸Ü¡A ¨ä¤¤¹ï¦r«¬³Ì­«­nªº³¡¥÷´N¬O {\ttfamily FontPath}¡C¦bÆp¬ã¥¦¤§«e¡A³Ì¦n¥ýÀË¬d X ªº¨ä¥L³]©w¡C¿ù»~ªº¿Ã¹õ³]©w¤ñ¿ù»~ªº¦r«¬³]©w§ó¥O¤HÀYµh¡C½T©w§A¿Ã¹õªº§ó·sÀW²v(refresh rate)¦b¥¿±`¨Ï¥Î½d³ò¤¤¤w¸g³]¨ì³Ì°ª (85Hz «Ü¦n¡A75Hz ´¶³q¡A60 Hz «Ü¤£µÎªA)¡C

¥Î§A³Ì¶¶¤âªº¤å¦r½s¿è¾¹¨Ó½s¿è {\ttfamily XF86Config}¡C¦bÀÉ®×¶}ÀYªº File ¨º¸`¡A§AÀ³¸Ó·|¬Ý¨ìÃþ¦ü¤U­±ªºªF¦è:

\begin{verbatim}
FontPath        "/usr/X11R6/lib/X11/fonts/misc/"
FontPath        "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath        "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/"
\end{verbatim}


³o³¡¥÷¦b XFree86 3.x ©M 4.x ¸ÌÀ³¸Ó¬Û¦P¡A©Î¦Ü¤ÖÃþ¦ü¡C{\ttfamily FontPath} §i¶D X ¨ì¨º¸Ì¥h§ä¦bÅã¥Ü¾¹¤Wµe¦r¥Îªº¦r«¬¡C±Æ¦Cªº¶¶§Ç¬O«Ü­«­nªº¡A·í¤@­Ó X À³¥Îµ{¦¡¦V X ­n¨Dµe¤@¨Ç¦r¡AX server ³q±`°¾¦n±Ä¥Î¥¿¦b¨Ï¥Îªº¦r«¬¡CµM«á¥¦¥hÀË¬d {\ttfamily FontPath}¡A¨Ï¥Î²Ä¤@­Ó¯àº¡¨¬ X client ­n¨Dªº¦r«¬¡C½Ðª`·N¡ARedhat 6.x ªº xfs ±Ä¥Î¥t¤@ºØ¤è¦¡¨Ó³]©w FontPath¡C½Ð°Ñ¦Ò²Ä 3.2.2 ¸`¥H¤F¸Ñ xfs¡C

¹w³]¦w¸Ë³q±`±N 75dpi ªº¦r«¬©ñ¦b 100dpi «e­±¡C­Y§A¦³¤@¥x°ª¸ÑªR«×ªºÅã¥Ü¾¹¡A³oªí¥Ü«D±`¤pªº¦r¡C­Y§A¥¿¬O³oºØ±¡§Î¡A²Ä¤@­Ó­n¥Îªº¤èªk´N¬O±N 75dpi ©M 100dpi ªº FontPath ¹ï½Õ¡C

\begin{verbatim}
FontPath        "/usr/X11R6/lib/X11/fonts/misc/"
FontPath        "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath        "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/"
\end{verbatim}


µM«á«ü¥X§A°¾¦n¨Ï¥Î¤£¯àÁY©ñªºÂI°}¦r¡C­Y§A´¿¸g¨Ï¥Î Netscape ©Î¬O¨ä¥L¨Ï¥Î¸û¤j¦r«¬¨ÓÅã¥Ü¼ÐÃDªºµ{¦¡¡A§A±N·|µo²{³o¨Ç¦r«¬·|§e²{¿÷¾¦ª¬¡C³o¼Ë«ÜÃø¬Ý¡A¥²¶·­n­×¥¿¡C©Ò¥H¦b misc¡A100dpi ©M 75dpi ªº«á­±¥[¤W {\ttfamily :unscaled}¡C­Y·Q­nªº¸Ü¡A§A¤]¥i¥H¦P®É¨Ï¥Î¯àÁY©ñ©M¤£¯àÁY©ñªº¦r¡A¥u­n±N¤£¯àÁY©ñªº¦rªº {\ttfamily FontPath} ©ñ¦b«e­±¡A§i¶D X »¡­Y¥i¯àªº¸Ü¡AºÉ¶q¨Ï¥Î¤£¯àÁY©ñªº¦r¡C

\begin{verbatim}
FontPath        "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath        "/usr/X11R6/lib/X11/fonts/misc"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
\end{verbatim}


°µ¤F³o¨Ç§ïÅÜ«á¡A­«·s±Ò°Ê X¡C®à­±¬O¤£¬O¤w¸g¤ñ¸ûº}«G©O?


\subsection{X server ©R¥O¦C¿ï¶µ (command line options)}

¤U­±¤@¥ó­n°µªº¨Æ¬O½Õ¾ã X server ªº©R¥O¦C¿ï¶µ¡C±z±N·|·Q­n¥Î {\ttfamily -dpi} ¨Ó«ü©wÅã¥Üªº¸ÑªR«×¬O¨C­^¦T´XÂI¡C²{¤µ«Ü¦h¨t²Î³£¨Ï¥Î°ª¸ÑªR«×ªºÅã¥Ü¾¹¡A¥i¯à¥¦­Ì»Ý­n¥Î 100dpi¡C 

­Y§A¬O¦b console ªº´£¥Ü¦C¤U±Ò°Ê X¡AÁä¤J

\begin{verbatim}
 $ startx -dpi 100
\end{verbatim}


­Y§A¬O±Ä¥Î xdm ³oÃþªº¹Ï§Îµn¿ý¤¶­±¡A§A»Ý­n½s¿è§Aªº {\ttfamily /usr/X11/lib/X11/xdm/Xservers} ÀÉ (©Î¬O {\ttfamily /etc/X11/xdm/Xservers})¡C¦b¸Ì­±¦³ Xserver ªº©R¥O¦C¡C§ÚªºÀÉ®×¸Ì¦³¤U­±³o¤@¦æ:

\begin{verbatim}
 :0 local /usr/X11R6/bin/X -dpi 100 -gamma 1.6
\end{verbatim}


§A¥i¦b X ©M Xserver ªº manpage ¤¤§ä¨ì§ó¦hªº¸ê°T¡C


\section{TrueType ¦r«¬ (¤Ö¼Æ Windows ¦b¦æªº¨Æ±¡)}

¦]¬°¦b Redmond ªº¨º¸s³Ã¥ë«D±`Ãö¤ß¥L­Ì³nÅéªº¥~Æ[¦Ó¤£¬O¤º®e¡A¥L­Ì¦b Windows ¸Ì¥[¤W¹ï TrueType ¦r«¬ªº¤ä´©¡C·íµM¡A¥L­Ì¬O±q·½°_©ó MacOS ¤¤ªº TrueType ¤¤±o¨ì¤F³o­Ó¥D·N¡C Window 9x ©M¨ä¥Lªº Windows ³£¤º§t Arial¡ATimes New Roman¡A©M Courier New¡C¥L­Ì¬ùµ¥©ó Helvetica¡ATimes¡A©M Courier¡CTrueType ¦r«¬¬O¯àÁY©ñªº¡A©Ò¥H¥¦­Ì¦b©ñ¤j®É«Ü¦n¬Ý¡A¦Ó¥¦­Ì¤]³Q¦n¦nªº½Õ¾ã(hint)¹L¡A¦bÁY¤pªº®É­Ô¨ÌµM¥iÅª¡C¦³³\¦hªº Windows À³¥Îµ{¦¡ªþ°e¦n´X¥´ªº TrueType ¦r«¬¡C¥ý§O«æµÛ§â§Aªº Windows CD ®³¥h·Lªi¡A±o¥ý®³¨ì³o¨Ç¦r«¬¡C

¤£©¯ªº¬O¡AXFree86 3.x ¨Ã¨S¦³¤º«Ø¤ä´© TrueType¡A©Ò¥H§A¥²¶·¦Û¤v¥[¤J¡CµM¦Ó¡AXFree86 4.x «h¤º«Ø¤F (½Ð°Ñ¦Ò²Ä 4 ¸`)¡C³oªí¥Ü¤ä´© TrueType ªº¦r«¬¦øªA¾¹©M¦r«¬±N·|³Q¦w¸Ë¡C¦ý§A¨Ã¤£·|¦b¦U®aªº distribution ¤¤µo²{ºë¬üªº TrueType ¦r«¬¡C³Ì¥i¯àªº­ì¦]¬O²{¦b¨Ã¨S¦³¥H¾A·íªº license µo¦æªººë¬ü¦r«¬¡C




\subsection{¨ú±o TrueType ¦r«¬}

Åý§Ú­Ì¥ý³B²z¦r«¬¡C¦b¦UºØ MS Windows ©Òªþªº TrueType ¦r«¬À³¸Ó³£¥i¥H¥Î¡C§O§Ñ°O¤å¦r³B²z¾¹©M¨ä¥LÀ³¥Îµ{¦¡¤]³£ªþ¦³¦Û¤vªº¦r«¬¡CMacOS ªº¦r«¬¤£¯à¨Ï¥Î¡C­Y§A¤w¸g§â¨º¤ù CD ®³¥h·Lªi¡AÁÙ¦³¤@¨Ç§K¶Oªº TrueType ¦r«¬¥i¥H¤U¸ü (½Ð°Ñ¦Ò 6.2 ¸`ªº³sµ²)¡C

¬°¤F¨Ï¥Î TrueType ¦r«¬¡A³o¨Ç¦r«¬¥²¶·¯à°÷³Q¦r«¬¦øªA¾¹Åª¨ú¡C³oªí¥Ü¥¦­Ì¥²¶·¬O¦b¤@­Ó¤@ª½³Q±¾¸ü (mount) ªºÀÉ®×¨t²Î¤¤¡C¦bÂù§@·~¨t²Î (dual boot system) ¤W¡A³o¤]¥i¥H¬O¤@­Ó Windows ¤À³Î°Ï¡C·íµM¡A³o¨Ç¦r«¬¤]¥i¥H«þ¨©¨ì Linux ¤¤¡C­º¥ý¥ýÅÜ¦¨¶W¯Å¨Ï¥ÎªÌ:

\begin{verbatim}
 # su -
 # mkdir -p /usr/local/share/fonts/ttfonts
\end{verbatim}


²{¦b¤Á´«¨ì·sªº¦r«¬¥Ø¿ý¤U:

\begin{verbatim}
 # cd /usr/local/share/fonts/ttfonts
\end{verbatim}


µM«á±N¦r«¬¥[¤J³o­Ó¥Ø¿ý¡C¤£½×§A¬O±q Windows ¨t²Î¤¤«þ¨©¹L¨Ó

\begin{verbatim}
 # cp /mnt/<path_to_fonts>/*ttf  .
\end{verbatim}


©Î¬O±q \nameurl{http://www.microsoft.com/typography/fontpack/default.htm}{Mircosoft} ¤U¸ü¡C³o¨Ç¦r«¬¬O¦Û¸ÑÀ£ÁYªº zip ÀÉ¡C­Y§A·Q¦b Linux ¤U¸ÑÀ£ÁY¡A¥²¶·¤U¸ü¼Ð¥Ü 'Windows 3.1' ªºÀÉ®×¡C¦b Linux ¤U¥H Linux zip ¸Ñ¶}

\begin{verbatim}
 # ls *exe | xargs -n 1 unzip -L
\end{verbatim}


'-L' ªº¿ï¶µ·|±N¦r¦WÂà¬°¤p¼g¡A³o¹ï©ó xfsft ©M Redhat ªº xfs ¬O¥²­nªº¡Cª`·N²{¦bªº Linux zip µ{¦¡¨Ã¤£¯à³B²z 32 ¦ì¤¸ªº Win9x ¦r«¬À£ÁYÀÉ¡C¬Ý°_¨Ó¦ü¥G Microsoft ¤£·|¦A¦b³o­Óºô¯¸¤W©ñ¤J 16 bit ªº Arial, Courier ©M Times-Roman¡C©Î¬O§A¥i¥H¦b \nameurl{ http://rpmfind.net/linux/RPM/contrib/noarch/noarch/webfonts-1-3.noarch.html}{³o¸Ì} ¤U¸ü¥]§t³\¦h MS TrueType ¦r«¬ªº WebFonts RPM¡C¥¦¤w¸g¥]§t¨¬°÷ªº¦r«¬µ¹ Netscape ©M¨ä¥Lªººô¸ôÂsÄý¾¹¨Ï¥Î¤F¡C

§A¥²¶·¦b X server ªº FontPath ¤¤¥[¤J³o­Ó·sªº TrueType ¥Ø¿ý¡C¥Î§A¶¶¤âªº¤å¦r½s¿è¾¹¥[¤W¾A·íªº´X¦æ:

\begin{verbatim}
FontPath        "/usr/local/share/fonts/ttfonts"
FontPath        "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath        "/usr/X11R6/lib/X11/fonts/misc"
FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
\end{verbatim}



\subsection{¦r«¬¦øªA¾¹}

²{¦b¦³³\¦h¦r«¬¦øªA¾¹³£¥i¥H¨Ï¥Î: xfstt¡Axfsft¡A©M Redhat ¦Û xfsft ­×§ï¦Ó¨Óªº xfs¡CÁöµM³o¨Ç¦W¦r¬Ý°_¨Ó«Ü¹³¡A¦ý¬O¥¦­Ì«o¬O¤£¦Pªº®M¥ó¡C¦Ü¤Ö¤@­Ó¥H¤Wªº®M¥óÀ³¸Ó¤w¸g¥]§t©ó¥ô¦ó³Ìªñªº Linux distribution¡C¦Ó§A¤]¥i¯à¤w¸g¦w¸Ë¤F¡C

¥H«e¦r«¬¦øªA¾¹¬O¥Î©ó¦bºô¸ô¤W´£¨Ñ¦r«¬¡C¦r«¬ªº¸ê·½¥i¥H¦s©ó¤@¥x¾÷¾¹¤W¡A¨ä¥Lªº client ¥i¥H¦b»Ý­nªº®É­ÔÅª¨ú¡C¦ý¬O¥¦ªºµo®iªÌ¼W¥[¤F·s¥\¯à¡A¦p¥i¥Hµe TrueType ¦r«¬¡C(XFree86 4.x ¤w¸g¥]§t³o­Ó¥\¯à¡A©Ò¥H­Y¥u¬O­n´£¨Ñ TrueType ¤ä´©ªº¸Ü¡A¨Ã¤£»Ý­n¥t¥~ªº¦r«¬¦øªA¾¹)¡C


\subsubsection{xfstt}

¤@­Ó³o¼Ëªº¦r«¬¦øªA¾¹¬O xfstt¡C¥¦¦b³]­p¤W´N¦³¦Ò¼{¨ì TrueType ¦r«¬¡C


\paragraph{¦w¸Ë}

xfstt «D±`®e©ö¦w¸Ë©M³]©w¡C­Y§A©|¥¼¦w¸Ëªº¸Ü¡A¥²¶·±qºô¯¸¤W¤U¸ü tarball ©Î¬O§ä§ä§Aªº CD¡C³Ì·sªºª©¥»¬O¦b \nameurl{http://metalab.unc.edu/pub/Linux/X11/fonts/}{http://metalab.unc.edu/pub/Linux/X11/fonts/}

¦³¤F tarball «á¡A§â¥¦¸Ñ¶}:

\begin{verbatim}
 $ tar -zxvf Xfstt-*tgz
\end{verbatim}


µM«á½sÄ¶©M¦w¸Ë¥¦¡CINSTALL ÀÉ¦³Â²³æªº»¡©ú¡C¦ý¬O¨ä¹ê¬O¤£¥Îªá¤°»ò¸£µ¬¡A¥u­n¦b xfstt ªº¥Ø¿ý¤U¡A¿é¤J¤U­±ªº«ü¥O§Y¥i:

\begin{verbatim}
 # make
 # make install
\end{verbatim}


Áä¤J¤U­±ªº«ü¥O¨Ó±Ò°Ê xfstt:

\begin{verbatim}
 # xfstt --sync              # §ó·s xfstt ªº¦r«¬¸ê®Æ®w
 # xfstt &                # ¦b­I´º°õ¦æ xfstt
\end{verbatim}


xfstt À³¸Ó­n¤ñ X server §ó¦­±Ò°Ê¡C¤@¥¹³o¼Ë°õ¦æµL»~¡A§A¥i¥H¦b {\ttfamily /etc/rc.d/rc.local} ©Î¬O¾A·íªº°_©lÀÉ¤¤¥[¤J¤W­±³o¤@¦æ¡CµM«áÁä¤J:

\begin{verbatim}
 $ xset +fp unix/:7100       # ª¾·| X ¦³Ãö xfstt ©M¨ì¨º¸Ì¥h§ä¦r«¬
\end{verbatim}


©Î¬O¦b§Aªº {\ttfamily XF86Config} ÀÉ¤¤¥[¤J¤U­±ªº«ü¥O¡Aª¾·| X ¦³Ãö©ó¦r«¬¦øªA¾¹¡C·í FontPath ªº¦ì¸m©M¤º®e¦³§ïÅÜªº®É­Ô¡A­«·s°õ¦æ {\ttfamily xfstt --sync}¡C

FontPath "unix/:7101"


\paragraph{½Õ¾ã¹w³]¦r«¬ªº¤j¤p}

­Y§Aªº TrueType ¦r«¬Åã±o¬Û·í¤p¡A¤U­±ªº«ü¥O¥i¯à¦³À°§U¡C

¦b X server ©R¥O¦C¥[¤W {\ttfamily -dpi} (½Ð°Ñ¦Ò²Ä 3 ³¹)¡C

¨Ï¥Î {\ttfamily --res} ¨Ó§i¶D xfstt ¼W¥[¹w³]ªº¸ÑªR«×¡C¥Î¤U­±ªº«ü¥O

\begin{verbatim}
 # xfstt --res 120
\end{verbatim}



\subsubsection{Redhat ªº xfs}

´N¦p¦P Redhat Linux 6.0 ¤@¯ë¡A¬[ºc¦b Redhat ¤Wªº distribution (¦p Mandrake µ¥) ¤w¸g¥]§t¤F¤@­Ó¯S§O­×¥¿ªº xfs ©M­×¥¿¹Lªº X servers¡CRedhat ªº xfs ¥]§t¤F xfsft ªº­×¥¿ÀÉ¡A¦Ó³o¨Ç­×¥¿ÀÉ«h¬O¬[ºc¦b FreeType Font library¡CRedhat ªº xfs ´£¨Ñ»P xfstt Ãþ¦üªº¥\¯à¡C¥¦¤£¥u¯à³B²z TrueType ©M Type 1 ¦r«¬¡A¤]¥i¥H¹ï¥I­ì¥»ªº X ¦r«¬¡C

­Y¬O§A¨Ï¥Î¬[ºc©ó Redhat ªº distribution¡Axfs À³¸Ó¤w¸g¦w¸Ë¦n¤F¡C­Y¨S¦³¡A¥¦¬O¦b {\ttfamily XFree86-xfs*rpm} ¤¤¡C­n·Q½T©w¥¦¬O¹w³]°õ¦æªºªA°È¡A¥i¥H¥Î {\ttfamily ntsysv} ©Î:

\begin{verbatim}
 # chkconfig --add xfs
\end{verbatim}


²{¦b xfs ´N·|¦b¨C¤@¦¸¶}¾÷ªº®É­Ô±Ò°Ê¡C


\paragraph{³]©w xfs ªº FontPath}

¦b Redhat ªº¹w³]¦w¸Ë¤¤¡Axfs ¬O¸g¥Ñ Unix Domain Socket ´£¨Ñ¦r«¬¡C§Ú­Ì¥²¶·§i¶D X server ¨ì¨º¸Ì¥h§ä xfs ©M¦r«¬¡C¦b {\ttfamily /etc/X11/XF86Config} ¤¤ªº FontPath ¤@©w­n¥]§t:

\begin{verbatim}
FontPath   "unix/:-1"
\end{verbatim}


¦Ü¤Ö¹w³]ªº³]¸m¬O¦p¦¹¡C³o¬O¤@­Ó xfs ·|¥h listen ªº socket¡C§A¤]¥i¥H¥[¤W¥t¥~ªº FontPath¡A¦ý¬O¥¦­Ì¥²¶·¥Ñ X server ¨Ó³B²z¡A¦Ó¤£¬O xfs¡C¦w¸Ë·sªº Redhat 6.x À³¸Ó´N¤w¸g³]©w¦n¤F¡A¦ý¬O­Y§A¬O±qÂÂªºª©¥»¤É¯Å¤W¨Ó¡A¥²¶·¦Û¤v°Ê¤â­×§ï¡C

xfs ¦b {\ttfamily /etc/X11/fs/config} ¤¤¦s¦³¦Û¤vªº FontPath¡C³o¸Ì´N¬O¥¦§ä¦r«¬ªº¦a¤è¡C¦b {\ttfamily XF86Config} ÀÉ¤¤¡A¥¦©ñ¦b X server ªº FontPath ¤W­±¡C§A¥i¥H¥Î¤å¦r½s¿è¾¹¥[¤J·sªº¸ô®|¡A©Î¬O¥Î {\ttfamily chkfontpath} ©R¥O:

\begin{verbatim}
 # chkfontpath --add /usr/local/share/fonts/ttfonts
\end{verbatim}


¸Ó FontPath ¦b°õ¦æ {\ttfamily chkfontpath} ©R¥O«e¥²¶·­n¥ý¦s¦b¡C¦b {\ttfamily /etc/X11/fs/config} ¤¤¬ÛÃö³¡¥÷¬Ý°_¨ÓÀ³¸Ó¹³¬O:

\begin{verbatim}
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
            /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
            /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
            /usr/X11R6/lib/X11/fonts/Type1,
            /usr/X11R6/lib/X11/fonts/Speedo,
            /usr/X11R6/lib/X11/fonts/misc,
            /usr/X11R6/lib/X11/fonts/100dpi,
            /usr/X11R6/lib/X11/fonts/75dpi,
            /usr/local/share/fonts/ttfonts
\end{verbatim}



\paragraph{·Ç³Æ¦n¦r«¬}

¦b¯u¥¿¨Ï¥Î TrueType ¦r«¬«eÁÙ¦³¤@¨Ç¨Æ±¡­n§@¡Cxfs »Ý­n¤@¨Ç¨Æ±¡«ö·Ó³W¯x¨Ó¡C­º¥ý¡A©Ò¦³ªº¦r¦W³£¥²¶·¬O¤p¼g¡C²Ä¤G¡A¦r¦W¸Ì¤£¯à¦³ªÅ¥Õ¡CµM«á¡A§Ú­ÌÁÙ­n²£¥Í¤@¨ÇÀÉ®×¤~¦æ¡C

¥ý¦¨¬°¶W¯Å¨Ï¥ÎªÌ¡AµM«á¨ì TrueType ¦r«¬ªº¥Ø¿ý¤U:

\begin{verbatim}
 # su -
 # cd /usr/local/share/fonts/ttfonts
\end{verbatim}


­Y¬O¦³¤p¼gªº¦r¦W¡A§A¥i¥H¨Ï¥Î¤U­±ªº script ±N©Ò¦³ªº¦r¦WÂà¬°¤p¼g:

\begin{verbatim}
 #!/bin/sh
 #
 ## -------- convert upper to lower case ---------
 
 ls * | while read f
  do
    if [ -f $f ]; then
      if [ "$f" != "`echo \"$f\" | tr A-Z a-z`" ]; then
       #Note that 'This' will overwrite 'this'!
       mv -iv "$f" "`echo \"$f\" | tr A-Z a-z`"
      fi
    fi
  done

 ## eof
\end{verbatim}


ª`·N¼ÐÂI²Å¸¹ -- ¤Ï¤Þ¸¹ (backquotes) «Ü­«­n! ¥¦¤]±N¦r¦W¤¤ªºªÅ¥Õ²¾°£¡C·í TrueType ¦r«¬¾A·í³Q¦w¸Ë«á¡A§A¥²¶·­n²£¥Í {\ttfamily fonts.dir} ©M {\ttfamily fonts.scale} ÀÉ¡C¤U­±ªº©R¥O¥i¥H°µ¨ì:

\begin{verbatim}
 # ttmkfdir -o fonts.scale
 # mkfontdir
\end{verbatim}


²{¦b§Aªº TrueType ¦r«¬¥Ø¿ý¤¤À³¸Ó¦³ {\ttfamily fonts.dir} ©M {\ttfamily fonts.scale} ÀÉ¡C{\ttfamily ttmkfdir} ¬O¦b {\ttfamily Freetype} ªº RPM ¸Ì¡A¦Ó¥B¥¦¥²¶·¦b {\ttfamily mkfontdir} «e°õ¦æ¡C³o¨Ç©R¥O¤£¨£±o¨C¦¸³£·|¦^³ø¿ù»~¡A©Ò¥H­n¦AÅçÃÒªº½T²£¥Í¤FÀÉ®×¡A¥B¤£¬OªÅÀÉ:





\begin{verbatim}
 $ ls -l fonts.*
  -rw-r--r--  1 root   root   11657 Aug 17 10:31 fonts.dir
  -rw-r--r--  1 root   root   11657 Aug 17 10:31 fonts.scale
\end{verbatim}


­Y§A¹J¨ì°ÝÃD¡A¸Õ¸Õ¦b {\ttfamily ttmkfdir} ¤¤¥[¤W {\ttfamily - m} ªº¿ï¶µ¡C³o·|©ñ±óÀÉ®×¤¤¤£¥¿½Tªº¦r¤¸¡C³]©w¤@­Ó¼Æ¦r¡A¦p 50 ©Î¬O 100 ({\ttfamily ttmkfdir -m 50}) ¡CÀÉ®×¥»¨­¬O¤å¦rÀÉ¡C¬Ý¤@¬Ý:

\begin{verbatim}
 $ less  fonts.dir
  114
  webdings.ttf  -microsoft-Webdings-medium-r-normal--0-0-0-0-p-0-microsoft-symbol
  verdanaz.ttf  -microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-ascii-0
  verdanaz.ttf  -microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-fcd8859-15
  verdanaz.ttf  -microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-iso8859-15
  verdanaz.ttf  -microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-iso8859-9
  verdanaz.ttf  -microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-iso8859-1
 [...]
\end{verbatim}


±µµÛ¡A§ó·s xfs (¦b XFree86 4.x ©Î³\¤£¥Î) ©M§A X server ªº FontPath:

\begin{verbatim}
 # /etc/rc.d/init.d/xfs restart
 $ xset +fp /usr/local/share/fonts/ttfonts
 $ xset fp rehash
\end{verbatim}


·í§A¥[¤J©Î²¾°£·sªº¦r«¬®É¡A­«·s°õ¦æÀY§À³o¨â­Ó©R¥O¡C{\ttfamily xset +fp }¥u¦³¦b¼W¥[·sªº¦r«¬¥Ø¿ý®É¤~»Ý°õ¦æ¡C

²{¦bÀ³¸Ó´N¨S°ÝÃD¤F¡C§A¥i¥HÀË¬d X ¥i¥H¨Ï¥Îªº¦r«¬:

\begin{verbatim}
$ xlsfonts | less
\end{verbatim}


©Î¬O¦A¥Î {\ttfamily xfontsel} ©Î {\ttfamily gfontsel} ¨ÓÀË¬d¡C­Y¦b {\ttfamily xlsfonts} ¤¤¥i¥H¬Ý¨ì¡A«h X ¥i¥H¨Ï¥Î¡A¤Ï¤§¥çµM¡C­Y¨S¦³¥X²{¡A¥H Ctrl-Alt-BS ­«·s±Ò°Ê X¡C


\subsection{xfsft}

\nameurl{http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/}{xfsft} ¬O¥Ñ Juliusz Chroboczek ©Ò¼gªº TrueType ¸Ñ¨M¤è®×¡Cxfsft ¬O¬[ºc¦b Mark Leisher µ¥¤H©Ò¼gªº FreeType font library¡C¥¦°ò¥»¤W¬O¤@­Ó XFree86 xfs ¦A¥[¤W¬ÛÃö¨ç¦¡®wªº­×¸ÉÀÉ -- xfs + ft¡CRedhat ªº xfs °ò¥»¤W¬O xfsft ¦A¥[¤W¤@¨Ç¤p¤pªº­×¥¿¡C¦Ó Free86 4.x ¤]¥]§t¤F¦P¬° Juliusz ©Ò¼gªº {\ttfamily freetype} ¦r«¬¼Ò²Õ(font module)¡C¥¦¬O XFree86 4.x ªº TrueType ¸Ñ¨M¤è®×¤¤ªº¤@­Ó¡C

­n·Q½sÄ¶ xfsft °£¤F xfsft ¥»¨­¥~¡A¦Ü¤ÖÁÙ­n¤@¨Ç XFree86 ªº­ì©lÀÉ¡A©Ò¥H¤£¾A¦X¤ßÅ¦¤£°÷±j§§ªº¤H¡C½sÄ¶©M³]©w xfsft ªº»¡©ú¤w¸g¦b tarball ¤¤¡A©Ò¥H¦b³o¸Ì§Ú¤£¥´ºâ¸Ô²Ó±Ô­z¡C¥L«Üª½±µ¡C¦b xfsft ªººô­¶ (¨£¤W­±) ¤W¦³¤@¨Ç¥i°õ¦æÀÉªº³sµ²¡C

ª`·N§A¥²¶·²£¥Í {\ttfamily fonts.scale} ©M {\ttfamily fonts.dir} ÀÉµ¹ xfsft¡C{\ttfamily fonts.scale} ¥i¥H¤â°Ê²£¥Í¡A©Î¬O¥Î {\ttfamily ttmkfdir} µ{¦¡¡C¥¦¨Ã¥¼¥]§t©ó xfsft¡A¦ý¬O§A¥i¥H¦b \nameurl{http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz}{³o¸Ì} ©Î³\¦h Linux ªººô¯¸¤W§ì¨ì¡CRedhat ¦b {\ttfamily Freetype} ªº RPM ¸Ì¥]§t¤F³o­Óµ{¦¡¡C

§A¤]·|»Ý­n¤@­Ó³]©wÀÉ¡C¤U­±¬O­Ó¨Ò¤l:

\begin{verbatim}

-----------------------------------------------------

clone-self = off
use-syslog = off

client-limit = 20

catalogue = /usr/local/share/font/ttfonts

error-file = /home/jec/fonts/xfs.errors

# in decipoints
default-point-size = 120

# x,y
default-resolutions = 100,100,75,75

-----------------------------------------------------
\end{verbatim}


µM«á°õ¦æ xfsft:

\begin{verbatim}
# xfs -port 7100 -config /path/to/your/config/file &
\end{verbatim}


§A¥i¥H¦b X server ªº {\ttfamily FontPath} ¤¤¥[¤W xfsft:

\begin{verbatim}
$ xset +fp tcp/localhost:7100
\end{verbatim}


­Y¤@¤Á¶¶§Qªº¸Ü¡A§A¥i¥H¦b {\ttfamily XF86Config} ¤¤¥[¤W³o­Ó {\ttfamily FontPath}¡C


\subsection{fonts.alias ÀÉ}

{\ttfamily fonts.alias} ¬O¥t¤@­Ó¥i¥H½Õ¾ã¦p¦ó³B²z¦r«¬ªº³]©wÀÉ¡C´N¦p¦P {\ttfamily fonts.scale} ©M {\ttfamily fonts.dir} ¤@¯ë¡A{\ttfamily fonts.alias} ¤]¥²¶·©M¦r«¬©ñ¦b¦P¤@­Ó¥Ø¿ý¤U¡C¥¦ÁöµM¤£¬O¥²­nªº¡A¦ý¬O¦³ªº¸Üªº½T¸Ñ¨M¤F¬Y¨Ç¥i¯àµo¥Í°ÝÃD¡C¤U­±¬O¤@­ÓºK¦Û Redhat ¨t²Î¤¤ {\ttfamily /usr/X11R6/lib/X11/fonts/misc/fonts.alias} ²Ä¤@¦æªº¨Ò¤l:

\begin{verbatim}
 fixed    -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
\end{verbatim}


³o¸Ì {\ttfamily fixed} ´N¬O¤Æ¨­(alias)¡C¨C¦¸ {\ttfamily fixed} ³Q©I¥s®É¡A§Ú­Ì¨Æ¹ê¤W©Ò±o¨ìªº¬O²Ä¤G¦Cªº¦r«¬©w¸q¡C¦r¤Ó¤p¤F¶Ü? ¥u­n§ï¦r«¬©w¸q§Y¥i (Äµ§i:¦Ü¤Ö¦b Redhat ¤¤¡A³o­ÓÀÉ®×«Ü­«­n)¡C¬Û¦Pªº­ì«h¥i¥HÀ³¥Î¨ì©Ò¦³ªº¦r«¬¡A¥]§t TrueType ¦r¡C¨Æ¹ê¤W¡A­Y§A¨S¦³ TrueType¡A§A¥i¥H¥Î³o­Ó§Þ¥©±N Type 1 ©ÎÃþ¦üªº¦r«¬¤Æ¨­¬° TrueType¡C 

¦b¬Y¨ÇµLªk§´µ½³B²z¦Û {\ttfamily fonts.scale} ´£¨Ñªº¸ê®ÆªºÀ³¥Îµ{¦¡¤¤¡A{\ttfamily fonts.alias} ´NÅã±o¬Û·í­«­n¡C¨ä¤¤³ÌµÛ¦Wªº´N¬O Netscape¡C­Y¨S¦³ {\ttfamily fonts.alias}¡A§A·|µo²{ Netscape ¥u¯àÅã¥Ü²{¦³ 0 ¨ì 12 ÂIªº¦r¡C©Î³\§A¤]µo²{­Y¦b {\ttfamily Preferences} ¤¤«ü©w¥t¤@ºØÂI¼Æ¦A°t¦X¤W {\ttfamily scalable font} ¿ï¶µ¡ANetscape ±NµLªk¦s¤U³o­Ó³]©w¡C¯u¥O¤H¹½·Ð! ©Ò¥H§Ú­Ì»Ý­n³o­ÓÀÉ®×¡C¤U­±¬O¨ú¦Û¤@­Ó {\ttfamily fonts.scale} ÀÉ:

\begin{verbatim}
 arial.ttf   -monotype-Arial-medium-r-normal--0-0-0-0-p-0-ascii-0
 arial.ttf   -monotype-Arial-medium-r-normal--0-0-0-0-p-0-fcd8859-15
 arial.ttf   -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-15
 arial.ttf   -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
\end{verbatim}


¦]¬°³o¨Ç¦r¬O¥i¥HÁY©ñªº¡A©Ò¥H¨Ã¨S¦³¹w³]ªºÂI¼Æ¡CÁ| Arial ¨Ó»¡¡A§Ú­Ì¥²¶·²£¥Í§Ú­Ì¦Û¤vªº {\ttfamily fonts.alias} ¡A¦p¤U:

\begin{verbatim}

 -monotype-Arial-medium-r-normal--6-60-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--9-90-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--7-70-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--9-90-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--8-80-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--10-100-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--9-90-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--11-110-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--10-100-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--12-120-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--11-110-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--12-120-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--12-120-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--12-120-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--13-130-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--13-130-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--14-140-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--14-140-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--15-150-0-0-p-0-iso8859-1 \
             -monotype-Arial-medium-r-normal--15-150-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--18-180-0-0-p-0-iso8859-1 \
            -monotype-Arial-medium-r-normal--18-180-75-75-p-0-iso8859-1

 -monotype-Arial-medium-r-normal--24-240-0-0-p-0-iso8859-1 \
            -monotype-Arial-medium-r-normal--24-240-75-75-p-0-iso8859-1
\end{verbatim}


({\itshape ½Ðª`·N§Ú­Ì±N­ì¥»¬O¤@¦æªº¼g¦¨¨â¦æ¥H¼W¥[¥iÅª©Ê\/})¡C³o¨â¦C¨ä¹êÀ³¸Ó©ñ¦b¦P¤@¦æ¡A¥Î¤@­Ó¥H¤WªºªÅ¥Õ¨Ó°Ï¤À¡A¦Ó¥B¤¤¶¡¨S¦³ "$\backslash$" ²Å¸¹¡C³o¼Ë°µ¤F¤§«á´N·|Åý Netscape ¶]±o«Ü¶¶¡C§A¥i¯à¤]µo²{¦b«e­±´X¦æ¸Ì¡A²Ä¤@¦C©M²Ä¤G¦CªºÂI¼Æ¨Ã¤£¬Û¦P¡C²Ä¤@¶µªº²Ä¤@¦C¬O'6'¡A¦ý¬O¦b²Ä¤G¦C«o¤Æ¨­¬°'9'¡A©Ò¥H¬O 9 ÂI¦r¡C³o¬O¬°¤F¸Ñ¨M¦b Netscape ¸Ì¤Ñ±þªº¤p¦r¦Ó¬G·N§ïªº¡C§A¥i¨Ì·Ó§Aªº³ß¦n¡A¸ÑªR«×©M²´¤O¨Ó½Õ¾ã¡C





³o­ÓÀÉ®×¥i¥H¤â°Ê²£¥Í¡A©Î¬O¥Î¯«©_ªº sed ©M awk script¡C\nameurl{http://home.c2i.net/dark/linux.html#ttf}{³o¸Ì} ¦³¤@­Ó°Q½×³oÀÉ®×©M¨ä¥L¦r«¬¬ÛÃöªº¥DÃD¦b Kristin Aanestad ªººô¯¸¤W¡C¨º¸Ì¤]¦³¤@­Ó¥i¥H­«½Æ¦Û°Ê²£¥Í {\ttfamily fonts.alias} ÀÉªº python script¡C·PÁÂ Kristin¡A¥Lªº§V¤O©M¨£¸Ñ±Òµo¤F³o¤@¸`¡C


\section{XFree86 4.x}

\nameurl{http://www.xfree86.org/4.0/}{XFree86 4.0} ª½±µ´£¨Ñ¤F¹ï TrueType ªº¤ä´©©M¤@¨Ç·s¥\¯à¡C¯à§ï¶i¹ï¦r«¬ªº¤ä´©¬O¬[ºc¦b Juliusz Chroboczek ªº xfsft¡C¦Ó xfsft «h¬O¬[ºc¦b·½¦Û©ó Mark Leisher ªº FreeType font library¡C¦]¦¹ XFree86 4.x ªº³]©wÀÉÃþ¦ü©ó xfsft ©M Redhat ­×§ïªº xfs¡C

{\ttfamily FontPath} ¤@ª½ÁÙ¦b {\ttfamily XF86Config} ÀÉ¡C¦Ó¹ï©ó Redhat xfs ªº¨Ï¥ÎªÌ¡A¥u­n±N {\ttfamily FontPath} ±q {\ttfamily /etc/X11/fs/config} ·h¦^ {\ttfamily XF86Config} §Y¥i¡C¦Ó²{­Y¥u­n TrueType ¤ä´©¤£¦A»Ý­n xfs ¤F¡C°£«D§AÁÙ»Ý­n´£¨Ñºô¸ô¤W¨ä¥L client ¦r«¬¡A§_¥i§A¥i¥H±N xfs Ãö³¬¡C

\begin{verbatim}
 Section "Files"
  FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
  FontPath "/usr/X11R6/lib/X11/fonts/misc"
  FontPath "/usr/X11R6/lib/X11/fonts/Type1"
  FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
  FontPath "/usr/share/fonts/default/Type1"
  FontPath "/usr/local/share/fonts/ttfonts"
  FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
  FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
 EndSection
\end{verbatim}


¬°¤F¨Ï¥Î TrueType ¦r¡A§AÁÙ¥²¶·¦b "Module" ¨º¸`­n«ü©w X server ­n¨Ï¥Î­þ¤@­Ó¼Ò²Õ:

\begin{verbatim}
 Section "Module"
  Load  "freetype"
  Load  "speedo"
  Load  "type1"
 EndSection
\end{verbatim}


´N¦p¦P xfsft ©M Redhat ªº xfs¡A§AÁÙ¥²¶·¦b¨C¤@­Ó TrueType ¦r«¬¥Ø¿ý¤U²£¥Í {\ttfamily fonts.scale} ©M {\ttfamily fonts.dir} ÀÉ¡C¦Ó \nameurl{http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz}{ttmkfdir} ¦b²£¥Í {\ttfamily fonts.scale} ®É«Ü¦³¥Î¡C½Ð°Ñ¦Ò«e­± xfs ¨º¸`¥H¨ú±o§ó¸Ô²Óªº¸ê®Æ©M¨Ò¤l¡C

{\ttfamily xtt} ¬O¥t¤@­Ó¥H¤ä´©ªí·N¤å¦r (ideographics, Oriental) µÛ¦W TrueType ¼Ò²Õ¡C¨âºØ³£¥i¨Ï¥Î¡A¦ý¬O¦b¦P¤@®É¶¡§A¥u¯à¨Ï¥Î¤@ºØ¡C




\section{½Õ¾ãÀ³¥Îµ{¦¡ªº¦r«¬}


\subsection{KDE}

¦b³o¬q¤é¤l¸Ì¡AKDE ¬O¦b Linux ©M X ¸Ìµo¥Í¹L³Ì¦nªº¨Æ±¡¤§¤@¡C¥¦´£¨Ñ¤F¤@­Ó¤@­Pªº¨Ï¥ÎªÌ¤¶­±¡AÅý¤@¯ë¤j²³¯à°÷±µÄ² Linux¡C§A¥i¥H¦b \nameurl{http://www.kde.org/}{http://www.kde.org/.} §ä¨ì§ó¸Ô²Óªº¸ê®Æ¡C¬°¤°»ò§Ú·|¦b³o¤j¤jºÙÆg¥¦©O? ³o¬O¦]¬° KDE 1.1 ¦³­Ó·s¯S¦â¡A¯à°÷Åý§Aµ{¦¡ªº¦r«¬©MÃC¦â»P²{¦bªº KDE ­·®æ¤@­P¡A¥]¬A«D KDE ªºÀ³¥Îµ{¦¡¡C


\subsubsection{¦b«D KDE ªºÀ³¥Îµ{¦¡¤WÀ³¥Î KDE ªº¦r«¬©MÃC¦â}

³o«ÜÂ²³æ¡C¥u­n¥´¶} KDE ªº±±¨î¤¤¤ß(Control Center)¤U­±ªº Desktop ¤U­±ªº style¡C¨º¸Ì¦³­Ó¿ï¶µ¥s°µ "Apply fonts and colors to non-KDE apps"(±N¦r«¬»PÃC¦âÀ³¥Î¨ì«D KDE ªºÀ³¥Îµ{¦¡)¡A¥´¶}¥¦¡A¿ï OK¡A³o¼Ë´N§¹¦¨¤F! ¤U¦¸§A¶}±Ò³\¦hªº X À³¥Îµ{¦¡¡A¥¦­Ì´N·|¹³¨ä¥Lªº KDE À³¥Îµ{¦¡¯ë¡A¨Ï¥Î¬Û¦PªºÃC¦â»P¦r«¬¡C¦³¨Ç¤H³Ì³ßÅw³o¶µ¯S¦â¡A¦ý­Y§A¤£³ßÅwªº¸Ü¡A¤]¥i¥H±N¥¦Ãö±¼¡C


\subsection{Netscape}

Åý§Ú­Ì¥¿µø³o­Ó°ÝÃD§a! Netscape ¦b Linux ¤¤¬O¤@­Ó­«­nªºÀ³¥Îµ{¦¡¡C§Ú­Ì³£»Ý­n¥¦¡A¤]³£¨Ï¥Î¥¦¡A©Ò¥H­È±o¯S§OªáÂI®É¶¡¨Ó¬ã¨s¥¦¡C¥´±q¦w¸Ë«á¡ANetscape ´N¥X²{§Ú­Ì­è­è©Ò°Q½×¨ì¦r«¬°ÝÃD -- ¤j¦r¦³¿÷¾¦ª¬¡AÃø¬Ýªº¦r¡A¦r¤Ó¤pÃø¥H¾\Åª¡C¤@¨¥¥H½ª¤§¡AÁà¡C»¡¤£©w³o´N¬O¬°¤°»ò§A¦b¬Ý³o½g¤å³¹ªº­ì¦]¤F?

§Æ±æ¦b³o­Ó®É­Ô§A¤w¸g±Ä¯Ç¤F«e­±ªº«ØÄ³¡C¨º¨Ç¨BÆJ¤j¦³À°§U¡CTrueType ¦r«¬´X¥G¬O¥²¶·ªº¡A¦Ó§A¤]»Ý­n¤@­Ó TrueType ¦r«¬¦øªA¾¹¡C³\¦hªººô­¶·|«ü©w¨Ï¥Îªº¦r«¬ºØÃþ(family)¡A¦p Arial¡A¦ý¬O³q±` Linux ªº¨Ï¥ÎªÌ«o¨S¦³¡CÁöµM³o¬O­Ó®t«lªº³]­p¡A¦ý¬O¦pªG¦³¨ÇÂ²³æªº TrueType ¦r±N¤j¤jÀ°§U§Ú­Ì§JªA¨º¨Çµuµøªº³]­p¡CMicrosoft -- µLªk¾a¥¦¡A¦ý«o¤]¤Ö¤£¤F¥¦ (can't live with 'em, can't live without 'em)¡C

°²³]§A¤w¸g¥i¥H¨Ï¥Î TrueType ¤F¡A±q Netscape ªº¿ï³æ¤W¿ï {\ttfamily Edit -{$>$} Preferences -{$>$} Fonts}¡C¦bµøµ¡ªº¥k¤âÃä©Ô¤U {\ttfamily Variable Width Font} ªº¿ï³æ¡AÀ³¸Ó¥i¥H¬Ý¨ì§Aªº TrueType ©M¨ä¥Lªº¦r«¬¡C¿ï¾Ü¤@­Ó§A³ßÅwªº·í§@¹w³]¡C¤]¿ï¨ú {\ttfamily Allow Scaling} ¡C­Y¥i¥Îªº¦r«¬ÂI¼Æ¥u¦³ 0 ¨ì 12 ÂI¡A§A¥i¥H¦b¿é¤JÄæ¤¤¦Û¤vÁä¤J·Q­nªºÂI¼Æ¡AµM«á¿ï {\ttfamily OK}¡CNetscape ªº¯ÊÂI¬O¥¦¤£·|°O±o³o¨Ç³]©w¡A©Ò¥H§A¥²¶·¦b¨C¦¸±Ò°Ê Netscape ªº®É­Ô­«§@¤@¦¸¡A°£«D§A±N {\ttfamily fonts.alias} ³]©w¦n¤~¥i¥H¸Ñ¨M³o­Ó°ÝÃD¡C½Ð°Ñ¦Ò{\ttfamily fonts.alias} ¨º¤@¸`¡C 

¤]³\§A·Q¸Õ¸Õ {\ttfamily \~{}/.Xdefaults} (¦b§A¨t²Î¤¤¤]³\¬O {\ttfamily \~{}/.Xresources}) ¸Ìªº³]©w:

\begin{verbatim}
 Netscape*DocumentFonts.sizeIncrement: 10
 Netscape*documentFonts.xResolution*iso-8859-1: 120
 Netscape*documentFonts.yResolution*iso-8859-1: 120
\end{verbatim}


·í Netscape ¨Ï¥Î¤£¦Pªº 'basefont'¡A'sizeIncrement' ±±¨î¨C¤@¯Åªº¤j¤p®t:

\begin{verbatim}
 <basefont size=7>
\end{verbatim}


Á|¨Ò¨Ó»¡¡A¹w³]¬O '20'¡A¥¦¬Û·í¦X¾A¡C§ïÅÜ³o­Ó­È±N·|¤£Åý Netscape ¹L«×ÁY©ñ¦r«¬¡Cx ©M y ªº¸ÑªR«×¤j²¤©M 'dpi' ¬Û¦P¡C¦b¦X²zªº½d³ò¤¤¡A¥ô¦óªº¼Æ¦r³£¥i¥H¨Ï¥Î¡C§A¥i¥H°µ¨Ç¹êÅç¡C 

°õ¦æ:

\begin{verbatim}
 $ xrdb -load ~/.Xdefaults
\end{verbatim}


(©Î {\ttfamily .Xresources})¡CµM«á­«·s±Ò°Ê Netscape¡C¦³³\¦h³]©w³£¥i¥H³o¼Ë§ïÅÜ¡C¬Ý¬Ý {\ttfamily Netscape.ad} ÀÉ (À³¥Îµ{¦¡ªº¹w³]­È)¡A¥¦À³¸Ó¥]§t¦b Netscape ªº®M¥ó¤¤¡C

­Y¬O³o¼Ëªº¤èªk¨Ã¤£¯à¸Ñ¨M Netscape ¤p¦rªº°ÝÃD¡A¬Ý¬Ý«e­± {\ttfamily fonts.alias} ¨º¸`¡C§A¥i¥H¥H³oºØ¤è¦¡²Ó½Õ³\¦h³]©w¡C

Mozilla ªº³]©wÀ³¸Ó¤j²¤¬Û¦P¡C¦ý¬O§A·|µo²{ Mozilla ¦b X ¤¤³B²z¦r«¬°µªº¸û¦n¡A©Ò¥H¾ãÅé¬Ý°_¨Ó·|¤ñ¸û¦n¡C


\section{Âø¶µ©Mµ²§À}


\subsection{°O¿ý}

¤£©¯ªº¬O¦b Linux ¤¤¨Ã¨S¦³¤@­Ó²Î¤@ªº¦r«¬³B²z¨t²Î¡C§A¥²¶·°w¹ï¨C¤@­Óµ{¦¡³]©w¤~¯à¨Ï¥Î TrueType, Type 1 ©M¨ä¥L§A¦³¿³½ìªº¦r«¬¡C¦Ó¨C¤@­ÓÀ³¥Îµ{¦¡¤]³£¦³¦Û¤vªº³]©w¤è¦¡¡A©Ò¥H§A¥²¶·¦Û¤v¹Á¸Õ¡C

¤j³¡¤À¹Ï§Î¤¶­±ªºÀ³¥Îµ{¦¡À³¸Ó³£¥i¥H¨Ï¥Î TrueType ©M Type 1 ¦r«¬¡CµM¦Ó¡ALinux ª©ªº WordPerfect «oµLªk¨Ï¥Î TrueType¡C(½Ð¨£¤U­±ªº³sµ²¥H¨úªº§ó¦hÃö©ó WordPerfect ªº±¡§Î)¡C¤å¦r½s¿è¾¹¡A²×ºÝ¾÷³oÃþªºµ{¦¡»Ý­n©T©w¼e«×¦r«¬¡A©Ò¥H¹ï TrueType ©M¨ä¥L¥iÁY©ñªº¦r«¬µLªk¦n¦n³B²z¡C 

ÁöµM¦b³o¸Ì¨S¦³°Q½×¨ì¡A¦ý¬O Type 1 ¦r«¬¤]´£¨Ñ¤F³\¦h¦p TrueType ¦r«¬ªº¦n³B¡C§A¥i¯à¤w¸g¦w¸Ë¤F¤£¤Ö¡C¤£©¯ªº¬O Type 1 ¤£¹³ TrueType ¤@¼Ë¬Oºô¸ô¤Wªº¼Ð·Ç¡C¦ý¬O¥¦­Ì¦b³\¦h¨ä¥L±¡§Î¤U«o«Ü¦X¾A¡A¦p¦C¦L¡C¥i¥H°Ñ¦Ò \nameurl{http://www.ghostscript.com}{ghostscript} ¥H¨úªº§ó¦hªº¸ê°T¡C



²{¤µªº XFree86 ÁÙ¤£¤ä´©¦rÃä¬X¤Æ(Anti-aliasing)¡C 

ÁöµM¥i¥H¹w³]¦r«¬ÂI¼Æµ¹ xfs ¦r«¬¦øªA¾¹¡A¦ý¬O´X¥G¨S¤°»òÀ³¥Îµ{¦¡·|¯u¥¿¥Î¨ì¥¦¡C


\subsection{³sµ²}

\nameurl{http://linuxdoc.org/HOWTO/XFree86-Video-Timing-HOWTO.html}{Video Timing HOWTO}¡A¦³Ãö©ó¿Ã¹õªº³]©w¡C

\nameurl{http://www.linuxdoc.org/HOWTO/Font-HOWTO.html}{Font HOWTO}¡A¦³³\¦hÃö©ó¦w¸Ë¦r«¬©M¤@¨ÇÀ³¥Îµ{¦¡¡A¦p StarOffice, Applixware, Wordperfect, Ghostscript, TeX/LaTeX ªº¦r«¬§Þ¥©¡C

\nameurl{http://www.moisty.org/~brion/linux/TrueType-HOWTO.html}{TrueType HOWTO}¡AÃö©ó¦C¦L©M¤@¨ÇÃö©óÀ³¥Îµ{¦¡ªº§Þ¥©¡C

\nameurl{http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/}{xfsft Homepage}¡AX ªº TrueType ¤ä´©¡C³o¬O XFree86 4.x ¦r«¬¼Ò²Õ©M Redhat ªº xfs ªº°_·½¡C¦n¯¸¡A¦³¤@¨ÇÃö©ó¦r«¬©M TrueType ªº³sµ²¡C

\nameurl{http://home.c2i.net/dark/linux.html}{Some Linux for Beginners}¡A«Ü´Îªº¯¸¡A¦³Ãö©ó¦r«¬©M¨ä¥L Linux ªºÃD¥Ø¡C§t»\¤F³\¦h³o¸Ì°Q½×¹L¥DÃD¨Ã¥B§ó¬°¸Ô²Ó¡C

\nameurl{http://X-TT.dsl.gr.jp/}{X-TrueType Homepage}¡A¥t¥~ªº TrueType ¦r«¬¦øªA¾¹¡A¹ï¤é¤å¡A¤¤¤å©MÁú¤å«Ü¤è«K¡C

\nameurl{http://help.netscape.com/kb/consumer/19960513-54.html}{Netscape}¡A¤@¨ÇÃö©ó¦r«¬¤j¤pªº§Þ¥©¡C

{\ttfamily Using Corel Wordperfect 8 for Linux} §@ªÌ Rod Smith ªº \nameurl{http://www.rodsbooks.com/wpfonts/}{Wordperfect for Linux -- Fonts and Printers}¡A¦³Ãö©ó Wordperfect ©M¦p¦ó¨Ï¥Î TrueType ¡C¦³«Ü´Îªº¸ê®Æ¡C

\nameurl{http://www.xfree86.org}{XFree86 Project}¡A¸Ì­±ªº¤Hªá¤FµL¥i­p¼Æªº¥\¤Òµ¹¤F§Ú­Ì¤@­Ó±þ¤â¯Åªº¹Ï§Î¤¶­±Àô¹Ò¡C¦b \nameurl{http://www.xfree86.org/4.0/fonts.html}{XFree86 4.x} ¸Ì¦³¨Ç¦r«¬ªº¸ê®Æ¡C

\nameurl{http://www.microsoft.com/typography/fontpack/default.htm}{Microsoft Web Fonts}¡A²`¤Jªê¥Þ¡C¦Ó¥B¥L­ÌÁÙ¬O§K¶Oªº­C¡C­Y§A¨S¦³win32 ªº¨t²Î¨Ó¸Ñ¶}¡A½Ð§ì¼Ð¥Ü Win3.1 ªº¨º¤@­Ó¡C¥¦¥i¥H¦b Linux ¤U¸Ñ¶} (¨£«e­±)¡C

\nameurl{http://rpmfind.net/linux/RPM/contrib/noarch/noarch/webfonts-1-3.noarch.html}{Web Fonts RPM package}¡A¥]§t³\¦h MS ªººô¸ôÂsÄý¾¹¨Ï¥Î¦r«¬¡C

Hewlett Packard -- Garamond, Bodoni, Dark Courier, Euro Sign ©M Ozzie Black ªº \nameurl{http://www.fontsmart.com/fonts.htm}{HP FontSmart TrueType Fonts}¡C¥i¥H¦b Linux ¤U¥Î {\ttfamily unzip} ¸Ñ¶}¡C

\nameurl{http://www.freewareconnection.com/fonts.html}{Freeware Connection -- Free Fonts Sites} ¤@°ï¨ì³\¦h¯¸ªº³sµ²¡C

\nameurl{http://www.will-harris.com/fonts/freefonts.htm}{Bitstream's Geometric Slabserif}¡ATrueType ¦r«¬¡C

§ÚÁÙ¦³ºûÅ@ Redhat ªº xfs¡A
\nameurl{http://feenix.eyep.net/xstuff/xfs.html}{help and troubleshooting page}¡CÁÙ¦³¤@­Ó¥]§t MS TrueType ¦r«¬¡Afonts.scale ©M fonts.dir ªº RPM ®M¥ó¡C

\end{document}
