【文章內(nèi)容簡(jiǎn)介】
s/ISO88599/misc:unscaled 23: /usr/share/fonts/ISO88599/100dpi:unscaled 24: /usr/share/fonts/ISO88599/misc 25: /usr/share/fonts/ISO88599/100dpi 26: /usr/share/fonts/KOI8R/100dpi:unscaled 27: /usr/share/fonts/KOI8R/100dpi 28: /usr/share/fonts/zh_CN/TrueType 29: /usr/share/fonts/zh_TW/TrueType 30: /usr/share/AbiSuite/fonts These are the font paths on my box. It shows that xfs looks into these 這些字體路徑在我的電腦上。它顯示當(dāng)它被修復(fù)的時(shí)候 xfs 觀察這些路徑尋找一個(gè)特殊的字體。 paths seeking a specific font when it is required. There are two types of 有兩種類(lèi)型的重要文件: important files: in each of these paths, and in some 在每一個(gè)路徑中,和 在一些路徑中。 of the paths. For example, let39。s go to /usr/X11R6/lib/X11/fonts/100dpi, 例如,讓我們進(jìn)入 /usr/X11R6/lib/X11/fonts/100dpi, and open the files. The files look like this: 和打開(kāi)文件。文件象這樣: [] 775 adobeutopiaregularinormal19140100100p104iso106461 adobeutopiaboldinormal19140100100p109iso106461 adobeutopiaregularinormal17120100100p89iso106461 adobeutopiaregularinormal33240100100p179iso106461 adobecouriermediumonormal1180100100m60iso106461 adobeutopiaboldinormal17120100100p93iso106461 ... The first line specifies the number of fonts under current directory. 這第一行詳細(xì)說(shuō)明字體的數(shù)量在當(dāng)前目錄。 Following lines map file names to font names. 以下幾行是字體文件的名字。 [] lucidasansbolditalic8 bamp。hlucidaboldinormalsans1180100100p69iso88591 lucidasansbolditalic10 bamp。hlucidaboldinormalsans14100100100p90iso88591 lucidasansbolditalic12 bamp。hlucidaboldinormalsans17120100100p108iso88591 lucidasansbolditalic14 bamp。hlucidaboldinormalsans20140100100p127iso88591 lucidasansbolditalic18 bamp。hlucidaboldinormalsans25180100100p159iso88591 lucidasansbolditalic24 bamp。hlucidaboldinormalsans34240100100p215iso88591 ... This file maps font alias to font names. So it is clear that once font 這個(gè)文件顯示字體文件的別名與原名。因此清楚知道從前字體的“ fixed”是需要的, 39。fixed39。 is needed, the font server search in each font path 字體服務(wù)在比賽中尋找字體別名在每一字體路徑中。 for a match. If the match exists, the corresponding font file is specified 如果比賽是存在,那相應(yīng)的字體文件是指定在 。 in . If no match exists, which is a rare situation, the X server 如果比賽不存在,那是非常罕見(jiàn)的情形,字體服務(wù)不可以運(yùn)行我們需要重建字體列表。 cannot start and we need to rebuild the font lists. The rebuilding process 這重建的過(guò)程 will generate new and files. 將會(huì)產(chǎn)生新的 和 文件。 3. Rebuild font list. 重建字體列表。 Font list can be rebuilt using the script file xfs under /etc/. 運(yùn)用格本文件 xfs 在 /etc/ 下,字體列表可以被重建 Following is an excerpt of the script: 以下是格本文件的摘錄: ... buildfontlist() { pushd . amp。 /dev/null for d in $(/usr/sbin/chkfontpath list | cut f 2 d 39。:39。) 。do if [ d $d ]。 then cd $d Check if we need to rerun mkfontdir NEEDED=no if ! [ e ]。 then NEEDED=yes elif [ $(find . type f ewer 2/dev/null) != ]。then NEEDED=yes fi if [ $NEEDED = yes ]。 then ... }