<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter{å­—ä½“}

å…³äºŽå­—ä½“æœ‰ä¸‰ä¸ªé‡è¦æ¦‚å¿µï¼šglyphã€typefaceã€fontã€‚glyph~é€šå¸¸è¢«ç¿»è¯‘ä¸ºå­—å½¢ï¼Œä¹Ÿæœ‰ç¿»è¯‘ä¸ºå­—ä½“çš„ï¼›typeface~æ˜¯ä¸€ä¸ªä¹¦æ³•å’Œå°åˆ·é¢†åŸŸçš„æ¦‚å¿µï¼Œå®ƒé€šå¸¸è¢«ç¿»è¯‘ä¸ºå­—ä½“æˆ–ä¹¦ä½“ï¼›font~æ›¾ç»å’Œ~typeface~æ··ç”¨ï¼Œä½†çŽ°åœ¨ä¸€èˆ¬ç”¨ä½œç”µè„‘é¢†åŸŸçš„æ¦‚å¿µï¼Œåœ¨ä¸­å›½å¤§é™†è¢«ç¿»è¯‘ä¸ºå­—ä½“ï¼Œåœ¨å°æ¹¾è¢«ç¿»è¯‘ä¸ºå­—åž‹ã€‚

ä¸Šè¿°ç¿»è¯‘çš„æ··ä¹±ä»¤äººååˆ†æ—&nbsp;å¥ˆï¼ŒåŒ…è€å¸ˆå†³å®šåœ¨æœ¬æ–‡ä¸­æŠŠå®ƒä»¬åˆ†åˆ«ç¿»è¯‘ä¸ºå­—å½¢ã€å­—æ&nbsp;·ã€å­—ä½“ï¼Œä»¥æ­£è§†å¬ã€‚

å­—å½¢æ˜¯ä¸€ä¸ªå­—ç¬¦çš„å…·ä½“å›¾å½¢è¡¨çŽ°å½¢å¼ï¼Œä¸€ä¸ªå­—ç¬¦å¯ä»¥æœ‰å¤šä¸ªå­—å½¢ï¼Œæ¯”å¦‚æ±‰å­—ä¸­çš„â€œå¼·ï¼å¼ºâ€ã€â€œæˆ¶ï¼æˆ·ï¼æˆ¸â€ï¼›å­—æ&nbsp;·æ˜¯ä¸€ç»„ç›¸åŒé£Žæ&nbsp;¼æ&nbsp;·å¼çš„å­—å½¢çš„é›†åˆï¼Œæ¯”å¦‚ä¸­æ–‡å­—æ&nbsp;·æœ‰å®‹ã€ä»¿ã€æ¥·ã€é»‘ã€éš¶ã€ç¯†ç­‰ï¼›ä¸€ç§å­—æ&nbsp;·å¯ä»¥å¯¹åº”ç”µè„‘ä¸Šçš„å‡&nbsp;ç§å­—ä½“ã€‚

\section{å­—æ&nbsp;·}
\label{sec:typeface}
æ‹‰ä¸å­—æ¯çš„å­—æ&nbsp;·ä¸»è¦æœ‰ä¸‰å¤§ç±»ï¼šSerifï¼ˆRomanï¼‰ã€Sans Serif~å’Œ~Mono-space~ï¼ˆTypewriterï¼‰ã€‚Serif~çš„ç¬”ç”»è¾¹ç¼˜éƒ¨åˆ†æœ‰äº›è£…é¥°ï¼Œç±»ä¼¼äºŽä¸­æ–‡çš„å®‹ä½“ã€ä»¿å®‹ã€æ¥·ä½“ã€é­ä¹¦ç­‰ã€‚Sans Serif~çš„ç¬”ç”»åˆ™æ˜¯å¹³æ»‘çš„ï¼Œç±»ä¼¼äºŽä¸­æ–‡çš„é»‘ä½“ã€‚Sans~è¿™ä¸ªè¯æ¥æºäºŽæ³•è¯­ï¼Œå°±æ˜¯â€œæ²¡æœ‰â€çš„æ„æ€ã€‚Monospace~åˆ™æ˜¯ç­‰å®½å­—æ&nbsp;·ã€‚

æ¯ä¸€ç±»å­—æ&nbsp;·éƒ½å¯ä»¥æœ‰åŠ&nbsp;ç²—ï¼ˆboldï¼‰ã€æ–œä½“ï¼ˆitalicï¼‰ã€å€¾æ–œï¼ˆobliqueï¼‰ç­‰ä¿®é¥°æ•ˆæžœã€‚Italic~é€šå¸¸å¯¹åŽŸå­—æ&nbsp;·è¿›è¡Œè¿‡é‡æ–°è®¾è®¡ï¼Œå®ƒä¿®é¥°ç²¾ç»†ï¼Œå¤šç”¨äºŽ~Serifï¼›~Oblique~ä¹Ÿç§°ä½œ~slantedï¼ŒåŸºæœ¬ä¸Šæ˜¯æŠŠæ­£ä½“å€¾æ–œï¼Œå¤šç”¨äºŽ~Sans Serifã€‚é€šå¸¸~oblique~çœ‹èµ·æ¥æ¯”~italic~è¦å®½ä¸€äº›ã€‚

\Fref{tab:typeface}åˆ—å‡ºäº†å‡&nbsp;ç§å¸¸è§çš„å­—æ&nbsp;·ã€‚

\begin{table}[htbp]
\caption{å¸¸è§å­—æ&nbsp;·}
\label{tab:typeface}
\centering
\begin{tabular}{llll}
    \toprule
    æ“ä½œç³»ç»Ÿ &amp; Serif           &amp; Sans Serif &amp; Monospace \\
    \midrule
    Mac OS   &amp; Times           &amp; Helvetica  &amp; Courier \\
    Windows  &amp; Times New Roman &amp; Arial      &amp; Courier New \\
    \bottomrule
\end{tabular}
\end{table}

\section{å­—ä½“æ&nbsp;¼å¼}
\label{sec:font}

\subsection{ç‚¹é˜µå­—ä½“å’ŒçŸ¢é‡å­—ä½“}
ç”µè„‘ä¸Šç”¨çš„å­—ä½“ï¼ˆfontï¼‰æŒ‰æ•°æ®æ&nbsp;¼å¼å¯ä»¥åˆ†ä¸ºä¸‰å¤§ç±»ï¼šç‚¹é˜µå­—ä½“ï¼ˆbitmapï¼‰ã€è½®å»“ï¼ˆoutlineï¼‰å­—ä½“å’Œç¬”ç”»ï¼ˆstroke-basedï¼‰å­—ä½“ã€‚

ç‚¹é˜µå­—ä½“é€šè¿‡ç‚¹é˜µæ¥æè¿°å­—å½¢ã€‚æ—©æœŸçš„ç”µè„‘å—åˆ°å®¹é‡å’Œç»˜å›¾é€Ÿåº¦çš„é™åˆ¶ï¼Œå¤šé‡‡ç”¨ç‚¹é˜µå­—ä½“ã€‚ç‚¹é˜µå­—ä½“åŽæ¥æ¸æ¸è¢«è½®å»“å­—ä½“æ‰€å–ä»£ï¼Œä½†æ˜¯å¾ˆå¤šå°å­—å·å­—ä½“ä»ç„¶ä½¿ç”¨å®ƒï¼Œå›&nbsp;ä¸ºè¿™ç§æƒ…å†µä¸‹è½®å»“å­—ä½“ç¼©æ”¾å¤ªå¤šä¼šå¯¼è‡´ç¬”ç”»ä¸æ¸…æ™°ã€‚

è½®å»“å­—ä½“åˆç§°ä½œçŸ¢é‡å­—ä½“ï¼Œå®ƒé€šè¿‡ä¸€ç»„ç›´çº¿æ®µå’Œæ›²çº¿æ¥æè¿°å­—å½¢ã€‚è½®å»“å­—ä½“æ˜“äºŽé€šè¿‡æ•°å­¦å‡½æ•°è¿›è¡Œç¼©æ”¾ç­‰å˜æ¢ï¼Œå½¢æˆå¹³æ»‘çš„è½®å»“ã€‚è½®å»“å­—ä½“çš„ä¸»è¦ç¼ºé™·åœ¨äºŽå®ƒæ‰€é‡‡ç”¨çš„è´å¡žå°”æ›²çº¿ï¼ˆBÃ©zier curvesï¼‰åœ¨å…‰æ&nbsp;…ï¼ˆrasterï¼‰è®¾å¤‡ï¼ˆæ¯”å¦‚æ˜¾ç¤ºå™¨å’Œæ‰“å°æœºï¼‰ä¸Šä¸èƒ½ç²¾ç¡®æ¸²æŸ“ï¼Œå›&nbsp;è€Œéœ€è¦é¢å¤–çš„è¡¥å¿å¤„ç†æ¯”å¦‚å­—ä½“å¾®è°ƒï¼ˆfont hintingï¼‰ã€‚ä½†æ˜¯éšç€ç”µè„‘ç¡¬ä»¶çš„å‘å±•ï¼Œäººä»¬ä¸€èˆ¬ä¸åœ¨æ„å®ƒæ¯”ç‚¹é˜µå­—ä½“å¤šå‡ºçš„å¤„ç†æ—¶é—´ã€‚

ç¬”ç”»å­—ä½“å…¶å®žä¹Ÿæ˜¯è½®å»“å­—ä½“ï¼Œä¸è¿‡å®ƒæè¿°çš„ä¸æ˜¯å®Œæ•´çš„å­—å½¢ï¼Œè€Œæ˜¯ç¬”ç”»ã€‚å®ƒå¤šç”¨äºŽä¸œäºšæ–‡å­—ã€‚

\subsection{å¸¸è§å­—ä½“}

å¸¸è§çš„è½®å»“å­—ä½“æŠ€æœ¯æœ‰ï¼šType 1~å’Œ~Type 3ã€TrueTypeã€OpenTypeã€~\MF~ç­‰ã€‚

Adobe~çš„~Type 1~å’Œ~Type 3~åŸºäºŽ~PSï¼Œå®ƒä»¬é‡‡ç”¨ä¸‰æ¬¡è´å¡žå°”æ›²çº¿ã€‚Type 1~æ”¯æŒå¾®è°ƒï¼Œå®ƒä½¿ç”¨ä¸€ä¸ªç®€åŒ–çš„~PS~å­é›†ï¼›Type 3~ä¸æ”¯æŒå¾®è°ƒï¼Œä½†å®ƒå¯ä»¥ä½¿ç”¨å…¨éƒ¨~PS~åŠŸèƒ½ï¼Œå›&nbsp;æ­¤æ—¢å¯ä»¥åŒ…å«è½®å»“å­—ä½“ä¹Ÿå¯ä»¥åŒ…å«ç‚¹é˜µå­—ä½“ä¿¡æ¯ã€‚
    
1991~å¹´ï¼ŒApple~å‘å¸ƒäº†~TrueTypeï¼Œå®ƒé‡‡ç”¨äºŒæ¬¡è´å¡žå°”æ›²çº¿ã€‚äºŒæ¬¡æ›²çº¿å¤„ç†èµ·æ¥æ¯”ä¸‰æ¬¡æ›²çº¿å¿«ï¼Œä½†æ˜¯éœ€è¦æ›´å¤šçš„ç‚¹æ¥æè¿°ã€‚æ‰€ä»¥ä»Ž~TrueType~åˆ°~Type 1çš„è½¬æ¢æ˜¯æ—&nbsp;æŸçš„ï¼Œåä¹‹æ˜¯æœ‰æŸçš„ã€‚1994~å¹´ï¼ŒApple~ç€æ‰‹ç&nbsp;”ç©¶~TrueType~çš„ä¸‹ä¸€ä»£æŠ€æœ¯ï¼šTrueType GXï¼Œå®ƒåŽæ¥æ¼”å˜ä¸ºApple Advanced Typographyï¼ˆAATï¼‰ã€‚

1996~å¹´ï¼Œå¾®è½¯å’Œ~Adobe~è”åˆå‘å¸ƒäº†~OpenTypeã€‚å®ƒæ¯”èµ·~AAT~çš„ä¼˜åŠ¿æœ‰ï¼šè·¨å¹³å°ã€å¼€æ”¾å’Œæ˜“äºŽå¼€å‘ã€æ”¯æŒæ›´å¤šçš„è¯­è¨€æ¯”å¦‚é˜¿æ‹‰ä¼¯è¯­ã€‚

æ—©åœ¨~1984~å¹´~Knuth~å°±å‘å¸ƒäº†~\MFï¼Œå®ƒä¸Ž~TrueType~å’Œ~OpenTypeçš„åŒºåˆ«æ˜¯ï¼Œä¸ç›´æŽ¥æè¿°å­—å½¢è½®å»“ï¼Œè€Œæè¿°ç”Ÿæˆè½®å»“çš„ç¬”çš„è½¨è¿¹ã€‚ç¬”çš„å½¢çŠ¶å¯ä»¥æ˜¯æ¤­åœ†å½¢æˆ–å¤šè¾¹å½¢ï¼Œå°ºå¯¸ç¼©æ”¾è‡ªå¦‚ï¼Œå­—å½¢è¾¹ç¼˜ä¹ŸæŸ”å’Œä¸€äº›ã€‚ä¸¤ç§å­—ä½“å¯ä»¥ç”¨åŒä¸€ä¸ª~\MF~æ–‡ä»¶ï¼Œå½“ç„¶è¿˜æœ‰ä¸åŒçš„å‚æ•°ã€‚\MF~æŠ€æœ¯å¦‚æ­¤å…ˆè¿›ï¼Œå´æ²¡æœ‰æµè¡Œå¼€æ¥ã€‚å¯¹æ­¤~Knuth~è§£é‡Šé“ï¼Œè¦æ±‚ä¸€ä½è®¾è®¡å­—ä½“çš„è‰ºæœ¯å®¶æŽŒæ¡~60~ä¸ªå‚æ•°å¤ªå˜æ€äº†ï¼Œé‚£æ˜¯ç”¨æ¥æŠ˜ç£¨æ•°å­¦å®¶çš„ã€‚

Type 1~å’Œ~Type 3~æŠŠå­—ä½“ä¿¡æ¯å­˜å‚¨åœ¨ä¸¤ç§æ–‡ä»¶é‡Œï¼šmetrics~å’Œ~glyph~æ–‡ä»¶ã€‚metrics~æ–‡ä»¶æœ‰~AFMï¼ˆAdobe font metricsï¼‰å’Œ~PFMï¼ˆprinter font metricsï¼‰ï¼Œglyph~æ–‡ä»¶æœ‰~PFAï¼ˆprinter font ASCIIï¼‰å’Œ~PFBï¼ˆprinter font binaryï¼‰ã€‚~\LaTeX~ä½¿ç”¨çš„~metrics~æ&nbsp;¼å¼æ˜¯~TFMï¼ˆTeX Font Metricsï¼‰ã€‚

TrueType~çš„æ–‡ä»¶åŽç¼€æ˜¯~.ttfï¼ŒOpenType~çš„æ˜¯~.ttf~å’Œ~.otfã€‚\MF~è™½ç„¶ç”¨çŸ¢é‡å›¾å½¢æ¥å®šä¹‰å­—å½¢ï¼Œå®žé™…è¾“å‡ºçš„å´æ˜¯ä¸€ç§ç‚¹é˜µæ&nbsp;¼å¼ï¼šPK~ï¼ˆpacked rasterï¼‰ã€‚

ä¸Šè¿°å­—ä½“æŒ‰æŠ€æœ¯çš„å…ˆè¿›æ€§ï¼Œä»Žé«˜åˆ°ä½Žçš„æŽ’åºä¸ºï¼šOpenTypeã€~TrueTypeã€Type 1ã€Type 3ã€PKï¼Œæˆ‘ä»¬åº”ä¼˜å…ˆé€‰ç”¨~OpenType~å’Œ~TrueTypeã€‚

\subsection{åˆçºµè¿žæ¨ª}
Adobe~æ”¶å–çš„~Type 1~ä¸“åˆ©è®¸å¯è´¹ä¸€åº¦ååˆ†æ˜‚è´µï¼Œç©·äººä»¬åªå¥½ç”¨å…è´¹çš„~Type 3ã€‚ä¸ºäº†æ‰“ç&nbsp;´è¿™ç§åž„æ–­ï¼ŒApple~å¼€å‘äº†~TrueTypeã€‚1991~å¹´~TrueType~å‘å¸ƒä¹‹åŽï¼ŒAdobeéšå³å…¬å¼€äº†~Type 1~çš„è§„èŒƒï¼Œ~Type 1~å­—ä½“ä»Žè´µæ—å&nbsp;•è½ä¸ºå¹³æ°‘ï¼Œå›&nbsp;è€Œæµè¡Œå¼€æ¥ã€‚

1980~å¹´ä»£ä¸­åŽæœŸï¼ŒAdobe~çš„å¤§éƒ¨åˆ†ç›ˆåˆ©æ¥è‡ªäºŽ~PS~è§£é‡Šå™¨çš„è®¸å¯è´¹ã€‚é¢å¯¹è¿™ç§åž„æ–­å±€é¢ï¼Œå¾®è½¯å’Œ~Apple~è”åˆäº†èµ·æ¥ã€‚å¾®è½¯æŠŠä¹°æ¥çš„~PS~è§£é‡Šå™¨~TrueImage~æŽˆæƒç»™~Appleï¼ŒApple~åˆ™æŠŠ~TrueType~æŽˆæƒç»™å¾®è½¯ã€‚

å¾®è½¯å¾—é™‡æœ›èœ€ï¼Œåˆä¼å›¾èŽ·å¾—~AAT~çš„è®¸å¯è¯ï¼Œæœªé‚ã€‚ä¸ºäº†æ‰“ç&nbsp;´~Apple~çš„åž„æ–­ï¼Œå¾®è½¯è”åˆ~Adobe~åœ¨1996å¹´å‘å¸ƒäº†~OpenTypeã€‚Adobe~åœ¨2002~å¹´æœ«å°†å…¶å­—ä½“åº“å…¨é¢è½¬å‘~OpenTypeã€‚

ä¸Šé¢è¿™å‡&nbsp;å‡ºç²¾å½©å¥½æˆå……åˆ†å±•ç¤ºäº†å•†åœºä¸Šçš„å‹¾å¿ƒæ–—è§’ã€å°”è™žæˆ‘è¯ˆï¼Œæ²¡æœ‰æ°¸æ’çš„ä¼™ä¼´ï¼Œåªæœ‰æ°¸æ’çš„åˆ©ç›Šã€‚ä½†å®ƒåŒæ—¶ä¹Ÿå‘Šè¯‰æˆ‘ä»¬ï¼Œå¸‚åœºç«žäº‰ä¸­å—ç›Šçš„è¿˜æ˜¯å¹¿å¤§çš„æ¶ˆè´¹è€…ã€‚

\section{å­—ä½“åº”ç”¨}

PS~æ”¯æŒ~Type 1~å’Œ~Type 3ï¼Œè€Œ~PDF~é™¤äº†è¿™ä¸¤ç§è¿˜æ”¯æŒ~TrueType~å’Œ~OpenTypeã€‚\verb|latex|ã€DVIæµè§ˆå™¨ã€å„ç§~driver~åˆ†åˆ«é‡‡ç”¨ä¸åŒçš„å­—ä½“æŠ€æœ¯ã€‚

\subsection{DVI}
\verb|latex|~ç¼–è¯‘~\LaTeX~æºæ–‡ä»¶ç”Ÿæˆ~DVI~æ—¶åªéœ€è¦\verb|.tfm|~æ–‡ä»¶ï¼Œå›&nbsp;ä¸º~DVI~å¹¶ä¸åŒ…å«å­—å½¢ä¿¡æ¯ï¼Œè€ŒåªåŒ…å«å¯¹å­—ä½“çš„å¼•ç”¨ã€‚DVI~æµè§ˆå™¨æ˜¾ç¤º~DVI~æ—¶ä¸€èˆ¬ä½¿ç”¨~PKï¼Œå®ƒåœ¨ç³»ç»Ÿä¸­æŸ¥æ‰¾ç›¸åº”çš„~\verb|.pk|~æ–‡ä»¶ï¼Œè‹¥æ‰¾ä¸åˆ°å°±è°ƒç”¨~\MF~åœ¨åŽå°è‡ªåŠ¨ç”Ÿæˆã€‚

\subsection{dvips}
ç¼ºçœæƒ…å†µä¸‹ï¼Œ\verb|dvips|~ä¹Ÿä¼šæŸ¥æ‰¾~\verb|.pk|~ï¼Œæˆ–è°ƒç”¨~\MF~è‡ªåŠ¨ç”Ÿæˆï¼›ç„¶åŽæŠŠ~PK~è½¬æ¢æˆåŒ…å«ç‚¹é˜µå­—ä½“çš„~Type 3ï¼Œå®ƒçš„å‚æ•°~\verb|-D|~å¯ä»¥ç”¨æ¥æŽ§åˆ¶è¯¥ç‚¹é˜µå­—ä½“çš„åˆ†è¾¨çŽ‡ã€‚ç”¨~\verb|ps2pdf|~å¤„ç†å«~Type 3~çš„~PS~æ—¶ï¼Œè¾“å‡ºçš„è‡ªç„¶æ˜¯å«~Type 3~çš„~PDFã€‚

GSview~åœ¨ä½Žåˆ†è¾¨çŽ‡ä¸‹å¯ä»¥å¾ˆå¥½åœ°æ¸²æŸ“~Type 3ï¼ŒAdobe Reader~æˆ–~Acrobat~å´ä¸èƒ½ï¼Œå›&nbsp;ä¸ºå®ƒä»¬ä½¿ç”¨çš„~Adobe Type Manager~ä¸æ”¯æŒåŒ…å«å®Œæ•´~PS~çš„~Type 3ã€‚å«~Type 3~çš„~PDF~çœ‹èµ·æ¥ä¼šæœ‰äº›æ¨¡ç³Šï¼Œæ‰€ä»¥åº”å°½é‡é¿å…ä½¿ç”¨ã€‚

\verb|dvips|~çš„å¦ä¸€ä¸ªå‚æ•°~\verb|-Ppdf|~æŠŠ~Type 1~åµŒå…¥ç”Ÿæˆçš„~PSï¼Œè¿™æ&nbsp;·å†~\verb|ps2pdf|~å°±èƒ½ç”Ÿæˆå«~Type 1~çš„~PDFã€‚

\verb|dvips|~ä¸æ”¯æŒçœŸæ­£çš„ï¼ˆnativeï¼‰TrueTypeï¼Œç”¨æˆ·åªèƒ½æŠŠ~TrueType~å…ˆè½¬æˆ~PK~æˆ–~Type 1ï¼Œè¿™æ&nbsp;·ç»•äº†ä¸ªå¼¯æ•ˆæžœæ€»ä¼šæ‰“äº›æŠ˜æ‰£ã€‚

\verb|dvips|~çš„å­—ä½“è¯¦ç»†ä½¿ç”¨æ–¹æ³•å¯æŸ¥é˜…å…¶æ‰‹å†Œ\citep{Rokicki_2005}ç¬¬~6~ç«&nbsp;ï¼Œæ­¤å¤„ä¸èµ˜è¿°ã€‚

\subsection{dvipdfm(x)}
\verb|dvipdfm|~æ”¯æŒ~PK~å’Œ~Type 1ï¼Œå®ƒå¯ä»¥ç”¨ä¸€ä¸ª~\verb|t1fonts.map|~æ–‡ä»¶å»ºç«‹~PK~æ–‡ä»¶å’Œ~Type 1~æ–‡ä»¶ä¹‹é—´çš„æ˜&nbsp;å°„ï¼Œè¿™æ&nbsp;·ç”Ÿæˆçš„~PDF~ç”¨çš„å°±æ˜¯~Type 1ã€‚\verb|dvipdfm|~ä¹Ÿä¸æ”¯æŒçœŸæ­£çš„~TrueTypeã€‚

\verb|dvipdfmx|~é€šè¿‡æ­£ç¡®çš„è®¾ç½®å¯ä»¥ä½¿ç”¨çœŸæ­£çš„~TrueTypeï¼Œå®ƒå¯¹ä¸­æ—¥éŸ©ç­‰ä¸œäºšæ–‡å­—çš„æ”¯æŒä¹Ÿè¾ƒå¥½ï¼Œæ‰€ä»¥å®ƒå¯¹æˆ‘ä»¬æ¥è¯´æ˜¯~Driver~çš„é¦–é€‰ã€‚

\section{TrueType~å­—ä½“å®‰è£…é…ç½®}
CJK~è‡ªå¸¦çš„~UTF-8~ç¼–ç&nbsp;å­—ä½“~gbsn~å’Œ~gkaiåªåŒ…å«~GB2312~å­—ç¬¦é›†ï¼Œè€Œ~CTeX~åªæä¾›~GBK~ç¼–ç&nbsp;å­—ä½“ï¼Œå›&nbsp;æ­¤ä¸­æ–‡ç”¨æˆ·é€šå¸¸éœ€è¦è‡ªå·±å®‰è£…é…ç½®~UTF-8~ç¼–ç&nbsp;çš„~TrueType~å­—ä½“ã€‚

åœ¨ä½¿ç”¨~TrueType~ä¹‹å‰ï¼Œç”¨æˆ·é€šå¸¸éœ€è¦ä½œä»¥ä¸‹å‡†å¤‡å·¥ä½œï¼š
\begin{enumerate}
    \item ç”¨è½¬æ¢ç¨‹åº~\verb|ttf2tfm|~ç”Ÿæˆ~TFMã€‚
    \item é…ç½®å­—ä½“å®šä¹‰æ–‡ä»¶~\verb|.fd|ã€‚
    \item é…ç½®~\verb|ttf2pk|~ï¼Œå›&nbsp;ä¸º~DVI~æµè§ˆå™¨å’Œ~\verb|dvips|~éƒ½ä¼šè‡ªåŠ¨è°ƒç”¨~\verb|ttf2pk|~æ¥ç”Ÿæˆ~PKã€‚
    \item é…ç½®~\verb|dvipdfmx|ã€‚
\end{enumerate}

\subsection{ç›®å½•å’Œæ–‡ä»¶}
é€šå¸¸æ¯ä¸ªå‘è¡ŒåŒ…éƒ½ä¼šå‚ç…§~TDS~å»ºç«‹è‡ªå·±çš„ç›®å½•ç³»ç»Ÿï¼ŒæŠŠå„ç§æ–‡ä»¶å‘åœ¨å›ºå®šçš„ä½ç½®ã€‚æ¯”å¦‚~MiKTeX~é¡¶å±‚ç›®å½•å¦‚ä¸‹ï¼Œåœ¨æœ¬èŠ‚åŽé¢çš„ç¤ºä¾‹ä¸­æˆ‘ä»¬å°†ä½¿ç”¨è¿™äº›ç›®å½•çš„ç¼©å†™ã€‚
\begin{code}
Install: D:\edit\MiKTeX 2.7
UserData: C:\Documents and Settings\Alpha\Local Settings\
    Application Data\MiKTeX\2.7
UserConfig: C:\Documents and Settings\Alpha\
    Application Data\MiKTeX\2.7
\end{code}

ç›®å½•å¤šäº†æœ‰ä¸ªç¼ºç‚¹ï¼Œæ–‡ä»¶ä¸çŸ¥é“æ”¾åœ¨å“ªé‡Œå¥½ã€‚MiKTeX~ä¸­æœ‰çš„é…ç½®æ–‡ä»¶å±…ç„¶åœ¨å››ä¸ªç›®å½•ä¸‹å„æœ‰ä¸€ä»½ï¼Œå®žåœ¨æ˜¯ä»¤äººå‘æŒ‡ã€‚å¹¸å¥½æˆ‘ä»¬å¯ä»¥ç”¨ä¸‹é¢çš„å‘½ä»¤æ£€æŸ¥é…ç½®æ–‡ä»¶çš„å…·ä½“åå­—å’Œè·¯å¾„ã€‚

\begin{code}
initexmf --edit-config-file=ttf2pk
\end{code}

\subsection{ttf2tfm}
æ¯”å¦‚æˆ‘ä»¬æƒ³æŠŠ~\verb|SimSun18030.ttc|ï¼ˆ18030~å­—ç¬¦é›†çš„æ–°å®‹ä½“ï¼‰è½¬æ¢ä¸º~UTF8~ç¼–ç&nbsp;çš„å­—ä½“æ–‡ä»¶ï¼Œæˆ‘ä»¬éœ€è¦æ‰§è¡Œä»¥ä¸‹æ­¥éª¤ã€‚

\begin{enumerate}
    \item æŠŠéœ€è¦çš„~\verb|.ttf|~æ–‡ä»¶å¤åˆ¶åˆ°~\verb|UserData/fonts/truetype/chinese/|ã€‚
    \item ç”¨ä¸‹é¢çš„å‘½ä»¤ç”Ÿæˆ\verb|.tfm|~å’Œ~\verb|.enc|~æ–‡ä»¶ã€‚
    \item æŠŠ~\verb|*.tfm|~å¤åˆ¶åˆ°~\verb|UserData/fonts/tfm/chinese/utf8song/|ã€‚
    \item æŠŠ~\verb|*.enc|~å¤åˆ¶åˆ°~\verb|UserData/fonts/enc/chinese/utf8song/|ã€‚
\end{enumerate}

\begin{code}
ttf2tfm SimSun18030.ttc -q -w utf8song@Unicode@
\end{code}

\subsection{å­—ä½“å®šä¹‰æ–‡ä»¶}
å­—ä½“å®šä¹‰æ–‡ä»¶å°†å­—ä½“å¼•ç”¨åå’Œå®žé™…çš„å­—ä½“æ–‡ä»¶è”ç³»èµ·æ¥ï¼Œæ¯”å¦‚æˆ‘ä»¬åœ¨~\verb|CJK|~çŽ¯å¢ƒä¸­å¼•ç”¨~\verb|usong|~æ—¶ï¼Œç³»ç»Ÿå°†ä¼šæ‰¾åˆ°å¹¶ä½¿ç”¨~\verb|utf8song*.tfm|ã€‚

\begin{code}
%UserData\tex\latex\CJK\UTF8\C70usong.fd
\ProvidesFile{c70usong.fd}
%character set: GB18030
%font encoding: Unicode
\DeclareFontFamily{C70}{usong}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{usong}{m}{n}{&lt;-&gt; CJK * utf8song}{}
\DeclareFontShape{C70}{usong}{m}{it}{&lt;-&gt; CJK * utf8song}{}
\DeclareFontShape{C70}{usong}{bx}{n}{&lt;-&gt; CJKb * utf8song}{
    \CJKbold}
\endinput
\end{code}

\subsection{é…ç½®~\texttt{ttf2pk}}
MiKTeX~ä¸­~\verb|ttf2pk|~çš„é…ç½®æ–‡ä»¶æ˜¯~\verb|ttf2pk.ini|~ï¼Œåœ¨å…¶å®ƒçš„å‘è¡ŒåŒ…ä¸­å¯èƒ½æ˜¯~\verb|ttf2pk.cfg|ã€‚

\verb|ttf2pk.ini|~ä¸­æœ‰ä¸€ä¸ª~\verb|.map|~æ–‡ä»¶åˆ—è¡¨ï¼ŒåŽè€…å®šä¹‰äº†~TrueType~åº”è¯¥æŒ‰ç¼–ç&nbsp;è½¬ä¸º~PK~ç­‰ä¿¡æ¯ã€‚

æ¯”å¦‚ä¸‹é¢è¿™ä¸ªæ–‡ä»¶åˆ—è¡¨ä¼šè®©~\verb|ttf2pk|~è¯»å–~\verb|foo.map|~å’Œ~\verb|bar.map|ã€‚

\begin{code}
map foo.map
map bar.map
\end{code}

å¦‚æžœç³»ç»Ÿæ‰¾ä¸åˆ°~\verb|ttf2pk.ini|ï¼Œå®ƒä¼šç¼ºçœä½¿ç”¨~\verb|ttfonts.map|ã€‚
\begin{code}
%UserData\ttf2tfm\base\ttfonts.map
utf8song@Unicode@ SimSun18030.ttc
\end{code}

\subsection{é…ç½®~\texttt{dvipdfmx}}
é…ç½®~\verb|dvipdfmx|~æ˜¯ä¸ºäº†è®©~PDF~æ­£ç¡®åœ°åµŒå…¥~TrueTypeï¼Œå¦åˆ™ç”Ÿæˆçš„æ–‡ä»¶ä¸­çš„å†…å®¹ä¸èƒ½å¤åˆ¶ã€ç²˜è´´ã€‚

\begin{code}
%UserConfig\dvipdfm\config\dvipdfmx.cfg
f cid-x.map
\end{code}

\begin{code}
%UserData\dvipdfm\config\cid-x.map
utf8song@Unicode@ unicode SimSun18030.ttc
\end{code}

\bibliographystyle{unsrtnat}
\bibliography{reading}
\newpage
</pre></body></html>