http://CJK-Howto.net


CJK-HOWTO

CJK-Testing

Fonts-HOWTO

DownloadFonts

Unicode

UTF

Config-Examples


Console

Terminal

Editors

InputMethod

Mail

Printing



1U Rackmount Chassis

Custom-Chassis.com

Linux-1U.net

1U-ITX.net


ITX-Blades.net


Small PC cases

Mini-Box.net

Wrap-Box.net

Wrap-OS.net


Wan-Sim.net



Linux-Consulting.com

Linux-CAE.net

Linux-Sec.net

Linux-Boot.net

Linux-Backup.net

Linux-Wireless.org

Linux-Office.net

Linux-Video.net

Linux-VOIP.net

Linux-Jobs.net

Linux-Diff.net

1U-Raid5.net

Linux-Howto.net


Spam Reporting



Free Linux CDs

ISO9660.org

Distro-CD.org

Patch-CD.org




Contact



Linux is a registered trademark of
Linus Torvalds

More Linux Legalese


CJK-Howto
( Chinese-Japanese-Korean )



CJK-HOWTO CJK-Testing Fonts-HOWTO DownloadFonts Unicode UTF Config-Examples
Console Terminal Editors InputMethod Mail Printing

Font FAQ

Font Servers

Installing New Fonts

    XFree86.org Installing fonts
    Suse.de/~mfabian Fontconfig
    FreeDesktop.org fontconfig

    gnome.org fcfix.py fix for fc-cache
    Mail-Archive.com fonts.cache

  • Create a New Font
    • mkfontdir /usr/X11R6/lib/fonts/New
        creates fonts.dir
          aliasName ... full-font-name-and-sizes-unicode-format

    • mkfontscale /usr/X11R6/lib/fonts/New
        creates fonts.scale

    • fc-cache /usr/X11R6/lib/fonts/New
        creates fonts.cache-1

    XFree86.org Installing fonts
    • Font directories
        /usr/X11R6/lib/X11/fonts
        /usr/local/X11R6/lib/X11/fonts
        /usr/share/anywhere
        /usr/local/some/other/place
        ~/.fonts

    • Installing TT fonts
        cp lucbr.ttf ~/.fonts
        fc-cache
          creates .fonts.cache.1 ??

    • Installing BitMap fonts
        bdftopcf courier12.bdf
        gzip courier12.pcf
        cp *.pcf.gz /usr/local/share/fonts/bitmap
        mkfontdir /usr/local/share/fonts/bitmap
          creates fonts.dir

    • Installing Scalable fonts ( Type1 Speedo TrueType )
        mkfontscale /usr/local/share/fonts/Type1
          creates fonts.scale

        mkfontdir /usr/local/share/fonts/Type1
          creates fonts.dir

        xset +fp /usr/local/fonts/Type1

    • Installing Scalabe CID-keyed fonts
        mkfontdir /usr/local/share/fonts/CID
        mkcfm /usr/local/share/fonts/CID

  • Temporarily Installing the Fonts for testing
      xset +fp /usr/local/fonts/Type1 ( the path to the new fonts you're adding )
      xset rehash

  • vi /etc/X11/XF86config or ( /etc/X11/xorg.conf )
      ...
      # The FontServer ( xfs ) runs on port 7100
      FontPath "unix/:7100"
      ...
      FontPath "/usr/X11R6/lib/X11/fonts/chinese"
      FontPath "/usr/X11R6/lib/X11/fonts/japanese"
      FontPath "/usr/X11R6/lib/X11/fonts/korean"

  • Configure the X11 application to use the new Fonts
    • You have to restart X11 for these to take effect

    • For All X11 apps
        ~/.Xresources
        ~/.Xdefaults

    • For just xterm
        /usr/X11R6/lib/X11/app-defaults/XTerm /etc/X11/app-defaults/XTerm

  • Restart the FontServer
      /etc/rc.d/rc.xfs stop
      /etc/rc.d/rc.xfs start

  • Restart X11
      init 3
      init 5


Font Conversions

CJK Installed Font Availability

CJK Font Downloads


Copyright © 2000
Linux-Consulting
All Rights Reserved.
Updated: Sun Oct 16 19:28:38 2005 PDT