Podkluchenie russkih shriftov v XFree86


    Pervym shagom neobhodimo ubedit'sya, chto v sisteme prisutstvuyt russkie shrifty. Obychno oni nahodyatsya v kataloge /usr/X11R6/lib/X11/fonts/cyrillic. Esli etogo kataloga net, to dlya nachala neobhodimo ih ustanovit.

    Itak, shrifty u vas est', no ne fact, chto oni budut rabotat. Sushestvuet dva sposoba ukazat' shrifty sisteme XFree86

    Uznat' kakoj variant u vas ispol'zuetsya prosto - nado posmotret' config iksov:

XFree86 v3.x:
    Section "Files"
        RgbPath     "/usr/X11R6/lib/X11/rgb"
        FontPath    "/usr/X11R6/lib/X11/fonts/TrueType"
        FontPath   "unix/:7100"
    EndSection                                                                                         

XFree86 v4.x (takje):
    Section "Files"
	FontPath   "/usr/X11R6/lib/X11/fonts/TrueType"
        FontPath "unix/:7100"
    EndSection                                                                                         

   Esli est' "unix/:7100", znachit ispol'zuetsya font server i luche popravit' ego config. Esli net, to nado sdelat eshe odnu strochku "FontPath", v kotoroj ukazat ssylku na katalog /usr/X11R6/lib/X11/fonts/cyrillic:

	FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"

   Samoe glavnoe - chtoby ona byla pervoj. Inache latinskie shrifty budut imet' bolee vysokij prioritet.

   V sluchae font-servera nado pravit' fajl /etc/X11/fs/config. Vnutri fajla posle slova "catalogue" doljno poluchitsya chto-to vrode etogo:

catalogue = /usr/X11R6/lib/X11/fonts/cyrillic,
        /usr/X11R6/lib/X11/fonts/misc: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/X11R6/lib/X11/fonts/75dpi,
	/usr/share/fonts/default/TrueType,
	/usr/share/fonts/default/Type1

   Opyat-je, samoe glavnoe - russkie shrifty doljny byt' na pervom meste.

   Udachi v configuryanii! Budem nadeyat'sya, chto novye distributivy izbavyat nas ot takih melkih, no malopriyatnyh hlopot.


Anatoly V. Vdovichev (tolik@wlhs.nsk.su)