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

fonts settings screwed up - xfontsel crashes on some "fndry's" [long]



Hi

Some background information:
I recently replaced my 15" CRT with a 17" TFT. After installing an AOpen
video card (with nVidia GeForce2 MX 400 chipset) and connecting the new
monitor I booted Knoppix (v3.3) and copied the XF86Config-4 file
to /etc/X11/

I rebooted (to debian testing) without problems and later edited the
XF86Config-4 file to get a higher resolution (1280x1024) and to correct
some keyboard and mouse settings.

Everything is working fine now except for fonts. I remember that dpkg
asked me a question about using a CRT or a TFT when configuring some
(fonts-related) package a while ago. I guess I should dpkg-reconfigure
that package now because I feel that fonts could be rendered better than
they are now.

I've never investigated fonts much because things were fine so I've been
going through the archives of this list, the debian reference, ... to
understand more what's involved but so far I haven't been able to
correct much.

At the moment xfontsel crashes when I select "microsoft", "monotype" or
"unknown" from the fndry list. In the xterm I see:
m8ram@imladris:~$ xfontsel
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  45 (X_OpenFont)
  Value in failed request:  0x2000049
  Serial number of failed request:  2379
  Current serial number in output stream:  2380

I've edited /etc/X11/XF86Config-4 according to the debian reference and
the output of dpkg-reconfigure x-ttcidfont-conf.
I've also removed the FontPath entries that point to non-existant
directories on my system.

I've edited /etc/fonts/local.conf according to the output of
dpkg-reconfigure x-ttcidfont-conf, ran fv-cache -fv after which fc-list
shows more fonts than before. In xfontsel the same number of fonts was
available before and after this.

I'v restarted X several times to no avail.

/var/log/XFree86.0.log does indicate some things are wrong but I'm know
the debian way to fix this:
imladris:/home/m8ram# grep font /var/log/XFree86.0.log
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/truetype".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/truetype").
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/truetype/openoffice".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/truetype/openoffice").
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/truetype/ttf-bitstream-vera".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/share/fonts/truetype/ttf-bitstream-vera").
(WW) `fonts.dir' not found (or not valid) in "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID").
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/Type1,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Loading font Bitmap
(II) Reloading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Loading font Bitmap
(II) Loading /usr/X11R6/lib/modules/fonts/libspeedo.a
Skipping "/usr/X11R6/lib/modules/fonts/libspeedo.a:spencode.o":  No symbols found
(II) Loading font Speedo
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Loading font Type1
(II) Loading font CID
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Loading font FreeType
(II) Initializing built-in extension XFree86-Bigfont
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
FreeType: couldn't open face /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/vl=y:ai=0.4:Comic_Sans_MS_Bold.ttf: 1
FreeType: couldn't open face /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ds=y:ai=0.4:Andale_Mono.ttf: 1
FreeType: couldn't open face /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/vl=y:ds=y:ai=0.4:cmex10.ttf: 1
FreeType: couldn't open face /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ds=y:ai=0.4:FreeMono.ttf: 1

I have the following packages installed:
imladris:/home/m8ram# dpkg -l | egrep "font|ttf|xfs"
ii  console-data   2002.12.04dbs- Keymaps, fonts, charset maps, fallback table
ii  console-tools  0.2.3dbs-56    Linux console and font utilities
ii  defoma         0.11.8-0.1     Debian Font Manager -- automatic font config
ii  dfontmgr       0.11.8-0.1     GUI frontend for Defoma, DEbian FOnt MAnager
ii  fontconfig     2.2.3-4        generic font configuration library
ii  freefont       0.10-11        Freeware font selection for X11
ii  gsfonts        8.14+v8.11-0.1 Fonts for the Ghostscript interpreter(s)
ii  gsfonts-x11    0.17           Make Ghostscript fonts available to X11
ii  latex-xft-font 0.1-5          Xft-compatible versions of some LaTeX fonts
ii  libconsole     0.2.3dbs-56    Shared libraries for Linux console and font 
ii  libfont-afm-pe 1.19-1         Font::AFM - Interface to Adobe Font Metrics 
ii  libfontconfig1 2.2.3-4        generic font configuration library (shared l
ii  libfreetype6   2.1.7-2.3      FreeType 2 font engine, shared library files
ii  libt1-5        5.0.2-3        Type 1 font rasterizer library - runtime
ii  libttf2        1.4pre.2003040 FreeType 1, The FREE TrueType Font Engine, s
ii  libxft1        4.3.0.dfsg.1-1 FreeType-based font drawing library for X (v
ii  libxft2        2.1.2-6        FreeType-based font drawing library for X
ii  msttcorefonts  1.2            Installer for Microsoft TrueType core fonts
ii  psfontmgr      0.11.8-0.1     PostScript font manager -- part of Defoma, D
ii  sharefont      0.10-12        Shareware font selection for X11
ii  ttf-bitstream- 1.10-3         The Bitstream Vera family of free TrueType f
ii  ttf-freefont   20031008-1.1   Freefont Serif, Sans and Mono Truetype fonts
ii  ttf-opensymbol 1.1.3-7        The OpenSymbol TrueType font
ii  ttmkfdir       3.0.9-3        Utility used to create fonts.scale files for
ii  tv-fonts       1.1-3          X11 fonts for TV applications
ii  x-ttcidfont-co 17             Configure TrueType and CID fonts for X
ii  xfonts-100dpi  4.3.0.dfsg.1-1 100 dpi fonts for X
ii  xfonts-100dpi- 4.3.0.dfsg.1-1 100 dpi fonts for X (transcoded from ISO 106
ii  xfonts-75dpi   4.3.0.dfsg.1-1 75 dpi fonts for X
ii  xfonts-75dpi-t 4.3.0.dfsg.1-1 75 dpi fonts for X (transcoded from ISO 1064
ii  xfonts-artwiz  1.3-2          x11 fonts created by Artwiz, TigerT, and Dan
ii  xfonts-base    4.3.0.dfsg.1-1 standard fonts for X
ii  xfonts-base-tr 4.3.0.dfsg.1-1 standard fonts for X (transcoded from ISO 10
ii  xfonts-scalabl 4.3.0.dfsg.1-1 scalable fonts for X
ii  xfs            4.3.0.dfsg.1-1 X font server
ii  xfs-xtt        1.4.1.xf430-5  X-TrueType font server
ii  xfstt          1.6-3          X Font Server for TrueType fonts

I've wondered before about having xfs, xfs-xtt and xfstt installed at
the same time perhaps that is part of the problem?

Here's my XF86Config-4:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "ServerFlags"
	Option "AllowMouseOpenFail"  "true"
	
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"

# 2005-03-26 this dir does not exist:
#	FontPath     "/usr/X11R6/lib/X11/fonts/PEX"

# Additional fonts: Locale, Gimp, TTF...
# 2005-03-26 These dirs do not exist:
#	FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1"

# 2005-03-26 These dirs do not exist:
#	FontPath     "/usr/share/fonts/ttf/western"
#	FontPath     "/usr/share/fonts/ttf/decoratives"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/truetype/openoffice"
	FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
# 2005-03-26 These dirs exist but these files are symlinked in /usr/X11R6/lib/X11/fonts/defoma/TrueType
#	FontPath     "/usr/share/fonts/truetype/freefont"
#	FontPath     "/usr/share/fonts/truetype/latex-xft-fonts"
#	FontPath     "/usr/share/fonts/truetype/msttcorefonts"


# 2005-03-26: this dir does not exist:
#	FontPath     "/usr/share/fonts/latex-ttf-fonts"

# 2005-03-26 edited by m8ram
# dpkg-reconfigure x-ttcidfont-conf suggests removing the following lines:
#	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/CID"
#	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
#
# dpkg-reconfigure x-ttcidfont-conf suggests adding the following lines:
# before editing this xfontsel shows 11282 fonts available
# after editing and restarting X xfontsel shows 16994 fonts available
	FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
	FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
# files /etc/X11/fs/config and /etc/X11/fs-xtt/config must be edited as well
EndSection

Section "Module"
        Load  "ddc"  # ddc probing of monitor
	Load  "GLcore"
	Load  "dbe"
	Load  "dri"
	Load  "extmod"
	Load  "glx"
        Load  "bitmap" # bitmap-fonts
	Load  "speedo"
	Load  "type1"
	Load  "freetype"
	Load  "record"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
        Option      "CoreKeyboard"
	Option "XkbRules" "xfree86"
	Option "XkbModel" "pc105"
	Option "XkbLayout" "be"
	Option		"XkbOptions"	"altwin:meta_win"
EndSection

Section "InputDevice"
	Identifier  "Serial Mouse"
	Driver      "mouse"
	Option      "Protocol" "Microsoft"
	Option      "Device" "/dev/ttyS0"
	Option      "Emulate3Buttons" "true"
	Option      "Emulate3Timeout" "70"
	Option	    "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
	Identifier  "PS/2 Mouse"
	Driver      "mouse"
	Option      "Protocol" "ImPS/2"
	Option      "ZAxisMapping"          "4 5"
	Option      "Device" "/dev/psaux"
	Option      "Emulate3Buttons" "true"
	Option      "Emulate3Timeout" "70"
	Option	    "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
	Option		"SendCoreEvents"	"true"
        Option          "Protocol"              "IMPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection

# Auto-generated by KNOPPIX mkxf86config

Section "Monitor"
	Identifier	"Monitor0"
	Option	"DPMS"	"true"
	VendorName	"MED"
	ModelName	"MED07b8"
	HorizSync 30 - 83 # DDC-probed
	VertRefresh 56 - 76 # DDC-probed
	# These are the DDC-probed settings reported by your monitor.
[ I've cut this part because it's probably irrelevant]
EndSection

Section "Device"
	### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
Option "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
	Identifier  "Card0"
# The following line is auto-generated by KNOPPIX mkxf86config
	Driver      "nv"
	VendorName  "All"
	BoardName   "All"
#	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultColorDepth 16
	SubSection "Display"
		Depth     1
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

I know I included a lot here but I hope this helps to get this problem
fixed quickly.

I'd really appreciate someone pointing out what I can try/read next.

TIA

Bram

-- 
# Mertens Bram "M8ram"   <bram-mertens@linux.be>   Linux User #349737 #
# debian testing            kernel 2.6.8-1-686     i686     512MB RAM #
#        13:35:30 up 20:49,  4 users,  load average: 1.06, 0.49, 0.19 #



Reply to: