
                          XFree86  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
     _________________________________________________________________
   
   θƳªģĶ X window 
     _________________________________________________________________
   
1. 

     * 1.1 ¼¼
       
2. XF86Config 

     * 2.1 趨 FontPath
       
3. X server ѡ (command line options)

4. TrueType  ( Windows ĺܺõ)

     * 4.1 xfstt
     * 4.2 xfs
       
5. KDE

     * 5.1 Ӧ KDE ͺɫ춷 KDE Ӧóʽ
       
6. ضӦóʽе

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

8. Ȩ
     _________________________________________________________________
   
1. 

   ұ봦һУһûû˵ X Ԥͺ趨
   (רָ XFree86 X ҲȽϺ)ЩʽԤʹù̶
   (fixed width fonts)ʵɱ (variable width fonts) Ϊʵ
   Щʽʹò˼С֣޷ϡ XFree86 ͸
   ʹáȷл courier ͣ Times 
   Helvetica ֻǼ򵥵ĵ֣ŵʱͲ״
   
    HOWTO ˵εʽ趨ΰװ壬
   Դ X window ͵ۺͿɶԵķǽɵ XF86Config
   е· (FontPath) startx  xdm  X server ѡ
   (command line options)µͣװ TrueType ŷ (font
   server) xfsttʹ K Desktop Environment 1.1 ĹӦó
   ʽ趨趨÷ KDE Ӧóʽɫܹ KDE һ¡
   
   ӭۣ [3]meldroc@frii.com 絽ҡ
   
1.1 ¼¼

     * 0.1: Feb. 21, 1999: һι
     * 0.11: Feb. 27, 1999:  copyright
     * 0.12: Jun. 10, 1999: Ԯ
     * 0.20: Sep. 14, 1999: Ϊ redhat ʹ߷й xfs һڡл
       Hal Burgiss Ĺס
     * 1.0: Nov. 23, 1999: תΪ SGML ʽ͸ Linux Document
       ProjectԮĲƳ
       
2. XF86Config 

   Ҫ͵⣬ȵÿ XF86Config (ͨ
   /usr/X11/lib/X11/XF86Config  /etc/X11/XF86Config)µ? 
   йҪĲݾ FontPathо֮ǰȼ X 
   趨өĻ趨ȴ趨ͷʹȷөĻĸƵ
    (refresh rate) ʹáΧѾ赽 (85Hz ܺã75Hz ͨ
   60 Hz ܲ)
   
2.1 趨 FontPath

   ˳ֱֵ༭༭ XF86ConfigڵĿͷӦûῴ
   Ķ:
   
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  X ȥөĻʾõ͡˳ǺҪģһ
   X Ӧóʽ X ҪʹһЩͣX server ͨƫʹõ͡
   Ȼȥ FontPathʹȿ X client Ҫ͡
   
   Ԥ FontPath ͨ 75dpi ͷ 100dpi ǰ档һ̨
   ȵөĻʾǳС֡һҪõķǽ 75dpi 
   100dpi  FontPath Ե
   
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/"

   Ȼָƫʹòŵĵ֡ʹ Netscape ʹ
   ϴʾĳʽᷢЩͳ־״ġܳ
   Ҫ޸ġ misc100dpi  75dpi  :unscaledҪĻ
   ҲͬʱʹźͲŵֻ֣Ҫŵֵ FontPath
   ǰ棬 X ˵ܵĻʹòŵ֡
   
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"

   Щıᣬ XǲѾȽƯ?
   
3. X server ѡ (command line options)

   һҪǵ X server ѡҪ -dpi ָ
   ʾĽÿӢ㡣ںܶϵͳʹø߽ȵʾ
   Ҫ 100dpi
   
    console  X
   
startx -dpi 100

    xdm ͼε¼棬Ҫ༭
   /usr/X11/lib/X11/xdm/Xservers  Xserver Сҵĵ
   һ
   
:0 local /usr/X11R6/bin/X -dpi 100 -gamma 1.6

    X  Xserver  manpage ҵѶ
   
4. TrueType  ( Windows ĺܺõ)

   Ϊ Redmond Ⱥһǳ۶ݣ
   Windows ϶ TrueType ͵֧ԮWindow 95  Windows ں
   ArialTimes New Roman Courier NewԼ HelveticaTimes
   CourierTrueType ŵģڷŴʱܺÿҲ
   õĵСʱȻɶ Windows Ӧóʽͺü
    TrueType ͡ȱ Windows CD ȥ΢õЩ
   ͡
   
4.1 xfstt

   ҵ XFree86 ûڲ֧Ԯ TrueType ͣԱԼ롣
   ķʽʹ xfsttһѵ TrueType ŷ(ע: 
   freeϸ˵ѣɵ˼)
   
  Installation
  
   xfstt װǳסȴվ tarballµİ汾
   [4]http://metalab.unc.edu/pub/Linux/X11/fonts/Xfstt-0.9.10.tgz
   
    tarballᣬ⿪
   
tar -zxvf Xfstt-0.9.10.tgz

   ȻͰװINSTALL м򵥵˵иôԵķ make;
   make install Ϳˡᣬɸʽܵȡõ TrueType Ϳ
   /usr/ttfonts Ϳˡָ xfstt
   
xfstt --sync              #  xfstt Ͽ
xfstt &                   # ڱִ xfstt

   Ȼ
   
xset +fp unix/:7100       #  X ʹ xfstt

    XF86Config мָ X ʹ
   
FontPath "unix/:7100"

  Ԥ͵ĴС
  
    TrueType Ե൱Сָа
   
    X server м -dpi (ο 3 )
   
   ʹ --res  xfstt ԤĽȡָ
   
xfstt --res 120

4.2 xfs

   xfs һŷѡѾ RedHat Ϊ
   distribution Сxfs ǻ FreeType Font libraryṩ xfstt
   Ĺܡxfs ֻܴ TrueType  Type 1 ͣҲԶԸԭ X 
   
   
  װ
  
   һǽ TrueType ͼ linux su ΪʹߣһĿ¼
   Щ:
   
mkdir /usr/share/fonts/ttfonts

   ȻὫͷĿ¼Դ Windows ϵͳпȥ
   
cp /mnt/win/path_to_fonts/*ttf /usr/share/fonts/ttfonts/

   Ǵ [5]Microsoft ֱء
   
   ЩԽѹ zip Կ linux аװ
   
unzip <FONT.EXE>

   ע͵ĵСдһ׵תǽǿһ
   DOS(FAT16) ϵͳУȻٿDOS дһ
   linuxer õķȽ뵽͵Ŀ¼£Ȼ:
   
ls *TTF | while read f
do
 [ -f "$f" ] && mv -f "$f" "`echo \"$f\" | tr A-Z a-z`"
done

   ڼÿһеʱ ">" ʾţÿһеᰴ return
    ע -- Щ "backquotes" Ҫ TrueType ȷװ
   Գʹִ:
   
ttmkfdir -o fonts.scale
mkfontdir

   Ŀ¼µݸıᣬִ༭ xfs 
   趨 /etc/X11/fs/config ͱм TrueType :
   
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

   Ҳ 'chkfontpath --add <font>' ͡ʹʱ
   ҲҪ͵Ԥ
   
default-point-size = 140

   ҴԤ 12 ֱΪ 14 ֡Щ X ӦóʽʹЩ
   ȷ XF86Config е FontPath 
   
FontPath "unix/:-1"

   ע "unix/:7100" Ҳڸճʱ޷ʹáе
   FontPath  '#' ע⣬Ҳˡxfs  packages Ӧ
    XFree  packages һװˡҪȷԤķʹ
   'ntsysv' 
   
chkconfig --add xfs

    xfs ÿһοʱ򶼻  X µ
   FontPathĵķʽ / xfs
   
/etc/rc.d/init.d/xfs restart

   ӦиʹõŷˡԼЩбʹ
   
xlsfonts | less

    xfontsel õ gfontsel ǡ
   
5. KDE

   KDE  Linux  X õ֮һṩһһ
   µʹ߽棬һܹӴ Linux
   [6]http://www.kde.org/. ҵϸϡΪʲһ?
   Ϊ KDE 1.1 иɫܹʽͺɫڵ KDE 
   һ£Ҳ KDE Ӧóʽ
   
5.1 Ӧ KDE ͺɫ춷 KDE Ӧóʽ

   ܼ򵥡ֻҪ KDE Ŀ(Control Center) Desktop 
   styleиѡ "Apply fonts and colors to non-KDE apps"(
   ɫӦõ KDE Ӧóʽ)ѡ OKͺ! ´
   ӦóʽǾͻ KDE Ӧóʽ㣬ͬɫ͡Щ
   ϲɫϲĻҲԽص
   
6. ضӦóʽе

6.1 Netscape Navigator/Communicator

   Netscape Communicator ͵൱СʹԤ
   FontPathͽǳСǳһҪȥ޸
   XF86Config е FontPath (οڶ)ʹ 100dpi ʹĸ
   ɶԡҲҪȥ Edit/Preferences/Appearance/Fonts 趨
   ѡ Font ѡе "Allow Scaling" õֲ״
   
    xfstt  xfsNetscape ǳʺʹ TrueType ͡Ȼ
   Ĵ xfstt ǡ Edit/Preferences УԽ TrueType 
   Ϊ̶ȻǿɱȣȻر Netscape ᣬǵѡȡ
   ͵ڿ X ʱδ -dpi  xfstt δʹ --res
   СTrueType ĺܰ!
   
6.2 WordPerfect

   ǳ
   
6.3 StarOffice

   ǳ
   
7. л

    HOWTO  Doug Holland ׫д
   
   Email: [7]meldroc@frii.com
   
   WWW: [8]http://www.frii.com/~meldroc/
   
    [9]Hal Burgies Ĺס
   
   л
   
     *  [10]comp.os.linux.x ǣҸտʼоЩʱ
       Ԯ֡
     * һбΪܵ Linux Ⱥ
     * Microsoft  Apple: ṩͣҵ档
       
8. Ȩ

   [ע:Ϊԭ⣬ⲿݲ]
   
   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
