[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Font server for X4?



Still having trouble with the fonts in X4 with a Swedish keyboard. The
console works OK, also mozilla and emacs. Now the keycodes seem to be
OK, but the keycode mapping to character is not OK.  In the console
the file /etc/kbd/default.kmap.gz is coorectly displayed, but not in
X running xterm. An example is
compose '"' 'a' to 'ä' vs 
compose '"' 'a' to 'some strange char like [] (but smaller)'

To make things work for the console I had to comment out 
set output-meta On              # display 8-bit characters correctly
from .inputrc (I'm using bash)

The font server running is xfs with the configuration file /etc/X11/fs/config :
...
# paths to search for fonts
catalogue = /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/75dpi/:unscaled,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/75dpi/
# in decipoints
default-point-size = 120
# x1,y1,x2,y2,...
default-resolutions = 75,75,100,100

The corresponding entries in /etc/X11/XF86Config-4 are:

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "AutoRepeat"    "500 30"
        Option          "XkbTypes"      "default"
        Option          "XkbCompat"     "default"
        Option          "XkbRules"      "xfree86"
        Option          "XkbKeyCodes"   "xfree86"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "se"
        Option          "XkbGeometry"   "pc"
        Option          "XkbSymbols"    "en_US(pc105)+se"
        Option          "XkbVariant"    "nodeadkeys"
        Option          "ScrollLock"    "Compose"
        Option          "RightCtl"      "Control"
        Option          "LeftAlt"       "Meta"
        Option          "RightAlt"      "Meta"
EndSection



Reply to: