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

Re: problem with defoma and non-GTK/KDE apps



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 25 February 2004 18:05, Florent Rougon wrote:
> [ TrueType fonts not found by X apps that presumably don't rely on
>   fontconfig ]

exactly.

> > So, I suspect defoma to be the culprit. Can someone confirm this
> > problem?
>
> Since noone seems to have a better idea, I would suggest you to give
> us the output of:
>
>   ls -l /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
>
> and check that:
>
>   1. the fonts you want to use are linked to from there;

They are...

taoyuan:/home/arne# ls 
- -l /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
total 544
lrwxrwxrwx    1 root     root           45 2003-12-14 01:47 bkai00mp.ttf 
- -> /usr/share/fonts/truetype/arphic/bkai00mp.ttf
lrwxrwxrwx    1 root     root           45 2003-12-14 01:47 bsmi00lp.ttf 
- -> /usr/share/fonts/truetype/arphic/bsmi00lp.ttf
- -rw-r--r--    1 root     root         3214 2004-01-11 20:42 
encodings.dir
- -rw-r--r--    1 root     root       333888 2004-01-11 20:42 fonts.alias
- -rw-r--r--    1 root     root       100952 2004-01-11 20:42 fonts.dir
- -rw-r--r--    1 root     root       100952 2004-01-11 20:42 fonts.scale
lrwxrwxrwx    1 root     root           58 2003-12-14 01:47 
FreeMonoBoldOblique.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
lrwxrwxrwx    1 root     root           51 2003-12-14 01:47 
FreeMonoBold.ttf -> /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
lrwxrwxrwx    1 root     root           54 2003-12-14 01:47 
FreeMonoOblique.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
lrwxrwxrwx    1 root     root           47 2003-12-14 01:47 FreeMono.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeMono.ttf
lrwxrwxrwx    1 root     root           58 2003-12-14 01:47 
FreeSansBoldOblique.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
lrwxrwxrwx    1 root     root           51 2003-12-14 01:47 
FreeSansBold.ttf -> /usr/share/fonts/truetype/freefont/FreeSansBold.ttf
lrwxrwxrwx    1 root     root           54 2003-12-14 01:47 
FreeSansOblique.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
lrwxrwxrwx    1 root     root           47 2003-12-14 01:47 FreeSans.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSans.ttf
lrwxrwxrwx    1 root     root           58 2003-12-14 01:47 
FreeSerifBoldItalic.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
lrwxrwxrwx    1 root     root           52 2003-12-14 01:47 
FreeSerifBold.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
lrwxrwxrwx    1 root     root           54 2003-12-14 01:47 
FreeSerifItalic.ttf 
- -> /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
lrwxrwxrwx    1 root     root           48 2003-12-14 01:47 
FreeSerif.ttf -> /usr/share/fonts/truetype/freefont/FreeSerif.ttf
lrwxrwxrwx    1 root     root           45 2003-12-14 01:47 gbsn00lp.ttf 
- -> /usr/share/fonts/truetype/arphic/gbsn00lp.ttf
lrwxrwxrwx    1 root     root           45 2003-12-14 01:47 gkai00mp.ttf 
- -> /usr/share/fonts/truetype/arphic/gkai00mp.ttf
lrwxrwxrwx    1 root     root           49 2003-12-14 01:47 thrybi__.ttf 
- -> /usr/share/fonts/truetype/thryomanes/thrybi__.ttf
lrwxrwxrwx    1 root     root           49 2003-12-14 01:47 thryb___.ttf 
- -> /usr/share/fonts/truetype/thryomanes/thryb___.ttf
lrwxrwxrwx    1 root     root           49 2003-12-14 01:47 thryi___.ttf 
- -> /usr/share/fonts/truetype/thryomanes/thryi___.ttf
lrwxrwxrwx    1 root     root           49 2003-12-14 01:47 thryn___.ttf 
- -> /usr/share/fonts/truetype/thryomanes/thryn___.ttf
lrwxrwxrwx    1 root     root           44 2004-01-11 20:41 ukaimbe.ttf 
- -> /usr/share/fonts/truetype/arphic/ukaimbe.ttf
lrwxrwxrwx    1 root     root           41 2004-01-11 20:41 ukai.ttf 
- -> /usr/share/fonts/truetype/arphic/ukai.ttf
lrwxrwxrwx    1 root     root           45 2004-01-11 20:42 umingmbe.ttf 
- -> /usr/share/fonts/truetype/arphic/umingmbe.ttf
lrwxrwxrwx    1 root     root           42 2004-01-11 20:41 uming.ttf 
- -> /usr/share/fonts/truetype/arphic/uming.ttf
lrwxrwxrwx    1 root     root           55 2003-12-14 01:47 VeraBd.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf
lrwxrwxrwx    1 root     root           55 2003-12-14 01:47 VeraBI.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf
lrwxrwxrwx    1 root     root           55 2003-12-14 01:47 VeraIt.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraIt.ttf
lrwxrwxrwx    1 root     root           57 2003-12-14 01:47 VeraMoBd.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf
lrwxrwxrwx    1 root     root           57 2003-12-14 01:47 VeraMoBI.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBI.ttf
lrwxrwxrwx    1 root     root           57 2003-12-14 01:47 VeraMoIt.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt.ttf
lrwxrwxrwx    1 root     root           57 2003-12-14 01:47 VeraMono.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf
lrwxrwxrwx    1 root     root           57 2003-12-14 01:47 VeraSeBd.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf
lrwxrwxrwx    1 root     root           55 2003-12-14 01:47 VeraSe.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSe.ttf
lrwxrwxrwx    1 root     root           53 2003-12-14 01:47 Vera.ttf 
- -> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
taoyuan:/home/arne#
taoyuan:/home/arne# ls -l /usr/share/fonts/truetype/arphic/
total 90680
- -rw-r--r--    1 root     root     10417860 1999-09-18 04:17 bkai00mp.ttf
- -rw-r--r--    1 root     root     12643248 1999-09-18 04:16 bsmi00lp.ttf
- -rw-r--r--    1 root     root        37591 2004-02-21 17:51 
fonts.cache-1
- -rw-r--r--    1 root     root      5192076 2000-01-05 22:51 gbsn00lp.ttf
- -rw-r--r--    1 root     root      4633128 2000-01-05 22:52 gkai00mp.ttf
- -rw-r--r--    1 root     root     15383372 2004-01-11 20:33 ukaimbe.ttf
- -rw-r--r--    1 root     root     15383972 2004-01-11 20:31 ukai.ttf
- -rw-r--r--    1 root     root     14503436 2004-01-11 20:36 umingmbe.ttf
- -rw-r--r--    1 root     root     14503820 2004-01-11 20:35 uming.ttf
taoyuan:/home/arne#

>   2. fonts.{dir,scale,alias} and encodings.dir are there and correct
> (I'm not sure whether fonts.alias and encodings.dir are mandatory,
> though);

look correct. the necessary entries are there.

>   3. the above directory is in your X font path (and you have
> performed "xset fp rehash" or similar since you last fiddled with
> fonts/X font directories);

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/TrueType"
        FontPath        
"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
        #FontPath       "/home/arne/Fonts-Temp"
EndSection

I restarted the x-server.

arne@taoyuan:~$ xlsfonts | grep iso10646 | less

[...]
- -arphic-ar pl kaitim big5-bold-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim big5-bold-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim big5-bold-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim big5-bold-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim big5-medium-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim big5-medium-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim big5-medium-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim gb-bold-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim gb-bold-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim gb-bold-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim gb-bold-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim gb-medium-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim gb-medium-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim gb-medium-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl kaitim gb-medium-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl kaitim uni mbe-bold-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni mbe-bold-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni mbe-medium-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni mbe-medium-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni-bold-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni-bold-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni-medium-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl kaitim uni-medium-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl mingti2l big5-bold-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl mingti2l big5-bold-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl mingti2l big5-bold-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl mingti2l big5-bold-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl mingti2l big5-medium-i-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl mingti2l big5-medium-i-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
- -arphic-ar pl mingti2l big5-medium-r-normal--0-0-0-0-m-0-iso10646-1
- -arphic-ar pl mingti2l uni mbe-bold-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl mingti2l uni mbe-bold-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl mingti2l uni mbe-medium-i-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl mingti2l uni mbe-medium-r-normal--0-0-0-0-p-0-iso10646-1
- -arphic-ar pl mingti2l uni-bold-i-normal--0-0-0-0-p-0-iso10646-1
[...]

The fonts are obviously found.

>   4. permissions are OK if you happen to "play" with them at times...

seem to be.


Now the test:

arne@taoyuan:~$ 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:  0x2c0000c
  Serial number of failed request:  33
  Current serial number in output stream:  34


when I remove the defoma path from the X-config and restart the server, 
xfontsel can run, but cannot use TrueType fonts.

This version of xcin is not the same like in debian. It's from CVS.

arne@taoyuan:~$ /usr/local/bin/xcin -x xcin-tw
XCIN (Chinese XIM server) version 2.5.3-pre2.
(module ver: 20010918, syscin ver: 20000210).
(use "-h" option for help)

xcin: locale "zh_TW.UTF-8" encoding "utf-8"
xcin: warning: invalid font ISO10646-1.
xcin: warning: invalid font ISO8859-1.
xcin: warning: invalid font ISO8859-1.
xcin: warning: invalid font BIG5-0.
xcin: warning: invalid font JISX0208.1983-0.
xcin: warning: invalid font KSC5601.1987-0.
xcin: warning: invalid font GB2312.1980-0.
xcin: warning: invalid font JISX0201.1976-0.
xcin: error: fontset setting error.
arne@taoyuan:~$ export
[...]
declare -x LANG="en_US.UTF-8"
declare -x LC_CTYPE="zh_TW.UTF-8"
[...]

However, when I link the truetype fonts 
to /usr/X11R6/lib/X11/fonts/TrueType and create the fonts.scale and 
fonts.dir manually and put this path into the X-config instead of the 
defoma path, xfontsel can start and also shows the truetype fonts. Xcin 
however cannot find any iso10646-1 font... strange.

Cheers
Arne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPK7ibp/QbmhdHowRArP+AJ9khwPANrSSiN/yo86R0AaSvCrz+gCeI7Hj
aacyZH2DenVY5J1U5O+d+a4=
=ZI+i
-----END PGP SIGNATURE-----



Reply to: