
                          XFree86 r Mini HOWTO
                                       
@: Doug Holland, [1]meldroc@frii.com
Ķ: Yu-Chia Chang, [2]joezhang@ms10.hinet.net

   v1.0, 23 November 1999. ½Ķ: 19-20 December 1999
     _________________________________________________________________
   
   pﵽ୮Ai\Ū X window r
     _________________________________________________________________
   
1. ²

     * 1.1 s
       
2. XF86Config 

     * 2.1 ]w FontPath
       
3. X server ROCﶵ (command line options)

4. TrueType r (ּ Windows ܦnƱ)

     * 4.1 xfstt
     * 4.2 xfs
       
5. KDE

     * 5.1  KDE rMCD KDE ε{W
       
6. bSwε{վr

     * 6.1 Netscape Navigator/Communicator
     * 6.2 WordPerfect
     * 6.3 StarOffice
       
7. P

8. vө
     _________________________________________________________________
   
1. ²

   bڥBz@QƤA@NOSSF X w]rMr]w
   (ڱM XFree86AL X ]\n)Cǵ{w]ϥΩTweצr
   (fixed width fonts)Aiܼeצr (variable width fonts) A
   CӦǵ{ϥΤiĳprAӵLk{CH XFree86 ӨӪrڥ
   AϥΡCTٺ魱 courier rAO Times M
   Helvetica uO²檺I}rAY񪺮ɭԴNͿC
   
   o HOWTO ջpվUU˪r]wApw˷srAMLi
   Hjjﵽ X window r~[MiŪʪkCoOǥѽվ XF86Config
   ɤr| (FontPath)Ab startx  xdm [W X server ROC
   (command line options)A[JsrAw TrueType rA (font
   server) xfsttAMϥ K Desktop Environment 1.1 \ӽվ\hε{
   r]wA]t]wD KDE ε{CMrP KDE @PC
   
   wסA󥿡AWɩMCziHb [3]meldroc@frii.com pڡC
   
1.1 s

     * 0.1: Feb. 21, 1999: Ĥ@GC
     * 0.11: Feb. 27, 1999: J copyrightC
     * 0.12: Jun. 10, 1999: JШDUC
     * 0.20: Sep. 14, 1999:  redhat ϥΪ̩J xfs @`CP
       Hal Burgiss ^mC
     * 1.0: Nov. 23, 1999: N峹ର SGML 榡Aǰe Linux Document
       ProjectCNШDUC
       
2. XF86Config 

   nQѨMrDAoݬ XF86Config ɡC(q`b
   /usr/X11/lib/X11/XF86Config  /etc/X11/XF86Config)CzqF? o
   r̭nNO FontPathCbڭ̬seA̦nˬd X 
   L]wC~ù]w~r]wOHYhCTwzùsW
   v (refresh rate) b`ϥνd򤤤wg]̰ (85Hz ܦnA75Hz q
   A60 Hz ܤΪA)C
   
2.1 ]w FontPath

   αz̶⪺rs边ӽs XF86ConfigCbɮת}YAzӷ|ݨ
   UF:
   
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/"

   FontPath iD X 쨺̥hbùWܥΪrCǬOܭnA@
   X ε{V X nDϥΤ@ǦrAX server q`nϥΥbΪrC
   Mᥦhݬ FontPathAϥγ̥ݨມ X client nDrC
   
   w] FontPath q`N 75dpi rb 100dpi reCYz@x
   ѪRתùAoܫD`prCĤ@ӧAnΪkNON 75dpi M
   100dpi  FontPath աC
   
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/"

   MXznϥΤYI}rCYzgϥ Netscape άOLϥ
   jrܼD{AzN|o{oǦre{Co˫A
   nקCҥHb miscA100dpi M 75dpi ̫[W :unscaledCYzQn
   Az]iHPɨϥίYMY񪺦rAunNY񪺦r FontPath
   beAiD X Yi઺ܡAɶqϥΤY񪺦rC
   
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"

   AFoǧܫAsҰ XCୱOOwg}GO?
   
3. X server ROCﶵ (command line options)

   U@nƬOվ X server ROCﶵCzN|Qn -dpi ӫw
   ܪѪR׬OC^TXIC{bܦhtΨϥΰѪRתܾAi०
   N|n 100dpiC
   
   Yzb console UҰ XAJ
   
startx -dpi 100

   Yz xdm oعϧεnAzݭnsz
   /usr/X11/lib/X11/xdm/Xservers ɡCb̭ Xserver ROCCڪɮ׸
   Uo@
   
:0 local /usr/X11R6/bin/X -dpi 100 -gamma 1.6

   zib X M Xserver  manpage hTC
   
4. TrueType r (ּ Windows ܦnƱ)

   ]b Redmond såD`ߥL̳n骺~[ӤOeAL̦b
   Windows ̥[W TrueType r䴩CWindow 95 ML Windows t
   ArialATimes New RomanAM Courier NewCL̬ HelveticaATimesAM
   CourierCTrueType rOY񪺡AҥH̦bjɫܦnݡAӥ̤]Qn
   nվLAGbYpɭԨ̵MiŪC\h Windows ε{enX
    TrueType rCOۧz Windows CD hLiAzooǦr
   C
   
4.1 xfstt

   O XFree86 èS䴩 TrueType rAҥHۤv[JC²
   覡ϥ xfsttA@ӧKO TrueType rAC(Ķ: o̧KOO
   freeAYӻAäOKOAӬOۥѪN)
   
  Installation
  
   xfstt w˫D`eCqWU tarballC̷sO
   [4]http://metalab.unc.edu/pub/Linux/X11/fonts/Xfstt-0.9.10.tgz
   
   F tarballA⥦Ѷ}
   
tar -zxvf Xfstt-0.9.10.tgz

   MsĶMw˥CINSTALL ɦ²檺CӤΤjk make;
   make install NiHFCnAѦU޹Do TrueType r
   /usr/ttfonts NiHFCJUOӱҰ xfstt
   
xfstt --sync              # s xfstt rƮw
xfstt &                   # bI xfstt

   MJ
   
xset +fp unix/:7100       #  X ϥ xfstt

   άObz XF86Config ɤ[JUOA X ϥγoA
   
FontPath "unix/:7100"

  վw]rjp
  
   Yz TrueType ro۷pAUOi঳U
   
   b X server ROC[W -dpi (аѦҲ 3 )C
   
   ϥ --res ӧiD xfstt W[w]ѪRסCΤUO
   
xfstt --res 120

4.2 xfs

   xfs Ot@ئrAܡCwg]tbH RedHat ¦
   distribution Cxfs O FreeType Font libraryAѤF xfstt
   \Cxfs uBz TrueType M Type 1 rA]iHI쥻 X r
   C
   
  w
  
   Ĥ@BON TrueType r[Jz linux ̡Csu WŨϥΪ̡Aؤ@ӥؿ
   ӦsoǦr:
   
mkdir /usr/share/fonts/ttfonts

   MNrJoӥؿ̡CziHqz Windows tΤLh
   
cp /mnt/win/path_to_fonts/*ttf /usr/share/fonts/ttfonts/

   άOq [5]Microsoft UC
   
   oǦrO۸Y zip ɡCzib linux w
   
unzip <FONT.EXE>

   `NrɦWpgC@ӧֳtSeഫkONL̫@
   DOS(FAT16) ɮרtΤAMA^ӡCDOS BzjgCt@Ӹ
   linuxer |ΪkOiJsrؿUAMJ:
   
ls *TTF | while read f
do
 [ -f "$f" ] && mv -f "$f" "`echo \"$f\" | tr A-Z a-z`"
done

   zbJC@oɭԷ| ">" ܲŸAbWzC@檺̫U return
   C `NIŸ --  "backquotes" ܭnC TrueType rTw˫
   AHWŨϥΪ̰:
   
ttmkfdir -o fonts.scale
mkfontdir

   zrؿUeܫAsWROCUӡAsz xfs r
   ]w /etc/X11/fs/config bzr[Jz TrueType r:
   
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/misc,
            /usr/X11R6/lib/X11/fonts/Type1,
            /usr/X11R6/lib/X11/fonts/Speedo,
            /usr/share/fonts/default/Type1,
            /usr/share/fonts/ttfonts,
            /usr/X11R6/lib/X11/fonts/100dpi,
            /usr/X11R6/lib/X11/fonts/75dpi

   άOz]iH 'chkfontpath --add <font>' ROӥ[JrCϥήɡAz
   γ\]|Qnzrw]IơC
   
default-point-size = 140

   oڱqw] 12 Irܬ 14 IrC X ε{ϥγoӡAǫh_
   CUӡATwz XF86Config ɤ FontPath O
   
FontPath "unix/:-1"

   `N "unix/:7100" ]iHAObXӮɵLkϥΡCNҦ
   FontPath  '#' ܦѡAϥA]Υ̤FCxfs  packages 
   ML XFree  packages @_wˤFCnTwOw]AȡAziHϥ
   'ntsysv' άO
   
chkconfig --add xfs

   {b xfs bzC@}ɭԳ|ҰʡC {bsҰ X ŪJs
   FontPathCΤU覡 Ұ/sҰ xfs
   
/etc/rc.d/init.d/xfs restart

   {bzӦӥiHϥΪrAFCziHˬdǦrQϥ
   
xlsfonts | less

   Υ xfontsel Ʀܧn gfontsel ˬd̡C
   
5. KDE

   boql̡AKDE Ob Linux M X o͹L̦nƱ@CѤF@Ӥ@
   PϥΪ̤A@jĲ LinuxCziHb
   [6]http://www.kde.org/. ԲӪơCڷ|bojjgO?
   oO] KDE 1.1 ӷsSAz{rMCP{b KDE 
   @PAo]]AD KDE ε{C
   
5.1  KDE rMCD KDE ε{W

   o²Cun} KDE (Control Center)U Desktop U
   styleC̦ӿﶵs "Apply fonts and colors to non-KDE apps"(Nr
   PCΨD KDE ε{)A}LA OKAo˴NnF! Uz}ҳ\
   hε{A̴N|L KDE ε{AۦPCPrC
   H̳woSAYzwܡAz]iHNC
   
6. bSwε{վr

6.1 Netscape Navigator/Communicator

   Netscape Communicator rD۷ӷPCYzϥιw]
   FontPathAzrN|D`pD`CzĤ@nhƱNOקz
   XF86Config ɤ FontPath (ѦҲĤG)Cϥ 100dpi rjjﵽF
   iŪʡCz]|Qnhˬdb Edit/Preferences/Appearance/Fonts r]w
   C Font ﶵ "Allow Scaling" iHI}r|C
   
   Yz xfstt  xfsANetscape D`AXϥ TrueType rCMӡA
   o骺Bz xfstt UCb Edit/Preferences AziHN TrueType r
   ]TweשάOiܼeסAMӷz Netscape ANOoz
   rIơCYzb} X ɥ -dpi άOb xfstt ϥ --resAzr
   N|ܤpCڥΤFWӭץATrueType ruܴ!
   
6.2 WordPerfect

   YNnC
   
6.3 StarOffice

   YNnC
   
7. P

    HOWTO O Doug Holland Ҽg
   
   Email: [7]meldroc@frii.com
   
   WWW: [8]http://www.frii.com/~meldroc/
   
   ~[ [9]Hal Burgies ^mC
   
   P
   
     * b [10]comp.os.linux.x H̡AL̦bڭ}lsoǪɭԹڦX
       C
     * oҦ@ܬi઺ Linux sC
     * Microsoft M Apple: L̴ѤFrAƤFڪୱC
       
8. vө

   [Ķ:L@̭NAo½Ķ]
   
   Unless otherwise stated, Linux HOWTO documents are copyrighted by
   their respective authors. Linux HOWTO documents may be reproduced and
   distributed in whole or in part, in any medium physical or electronic,
   as long as this copyright notice is retained on all copies. Commercial
   redistribution is allowed and encouraged; however, the author would
   like to be notified of any such distributions.
   
   All translations, derivative works, or aggregate works incorporating
   any Linux HOWTO documents must be covered under this copyright notice.
   That is, you may not produce a derivative work from a HOWTO and impose
   additional restrictions on its distribution. Exceptions to these rules
   may be granted under certain conditions; please contact the Linux
   HOWTO coordinator for more information.
   
   In short, we wish to promote dissemination of this information through
   as many channels as possible. However, we do wish to retain copyright
   on the HOWTO documents, and would very much like to be notified of any
   plans to redistribute the HOWTOs, this one in particular! Web page
   authors are free to link to this HOWTO without restriction, though the
   author would appreciate an email informing him of this, just so he can
   boost his ego by knowing who else reads and links to this document.
   
   Many of the terms mentioned in this document are trade names.Unless
   otherwise stated, all trademarks are property of their respective
   owners.

References

   1. mailto:meldroc@frii.com
   2. mailto:joezhang@ms10.hinet.net
   3. mailto:meldroc@frii.com
   4. http://metalab.unc.edu/pub/Linux/X11/fonts/Xfstt-0.9.10.tgz
   5. file://localhost/tmp/zh-sgmltools.27782/www.microsoft.com/typography/fontpack/default.htm
   6. http://www.kde.org/
   7. mailto:meldroc@frii.com
   8. http://www.frii.com/~meldroc/
   9. mailto:hburgess@bellsouth.net
  10. news:comp.os.linux.x
