|
Home > Archive > Debian Developers > March 2004 > Re: problem with defoma and non-GTK/KDE apps
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: problem with defoma and non-GTK/KDE apps
|
|
| Florent Rougon 2004-02-25, 9:37 am |
| Hi,
Arne Goetje <arne@goetje-online.de> wrote:
[ TrueType fonts not found by X apps that presumably don't rely on
fontconfig ]
> 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;
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);
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);
4. permissions are OK if you happen to "play" with them at times...
HTH,
--
Florent
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Arne Goetje 2004-02-25, 9:37 am |
| =2D----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.
>
> 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=20
=2D -l /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
total 544
lrwxrwxrwx 1 root root 45 2003-12-14 01:47 bkai00mp.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/bkai00mp.ttf
lrwxrwxrwx 1 root root 45 2003-12-14 01:47 bsmi00lp.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/bsmi00lp.ttf
=2D -rw-r--r-- 1 root root 3214 2004-01-11 20:42=20
encodings.dir
=2D -rw-r--r-- 1 root root 333888 2004-01-11 20:42 fonts.alias
=2D -rw-r--r-- 1 root root 100952 2004-01-11 20:42 fonts.dir
=2D -rw-r--r-- 1 root root 100952 2004-01-11 20:42 fonts.scale
lrwxrwxrwx 1 root root 58 2003-12-14 01:47=20
=46reeMonoBoldOblique.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
lrwxrwxrwx 1 root root 51 2003-12-14 01:47=20
=46reeMonoBold.ttf -> /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
lrwxrwxrwx 1 root root 54 2003-12-14 01:47=20
=46reeMonoOblique.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
lrwxrwxrwx 1 root root 47 2003-12-14 01:47 FreeMono.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeMono.ttf
lrwxrwxrwx 1 root root 58 2003-12-14 01:47=20
=46reeSansBoldOblique.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
lrwxrwxrwx 1 root root 51 2003-12-14 01:47=20
=46reeSansBold.ttf -> /usr/share/fonts/truetype/freefont/FreeSansBold.ttf
lrwxrwxrwx 1 root root 54 2003-12-14 01:47=20
=46reeSansOblique.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
lrwxrwxrwx 1 root root 47 2003-12-14 01:47 FreeSans.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSans.ttf
lrwxrwxrwx 1 root root 58 2003-12-14 01:47=20
=46reeSerifBoldItalic.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
lrwxrwxrwx 1 root root 52 2003-12-14 01:47=20
=46reeSerifBold.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
lrwxrwxrwx 1 root root 54 2003-12-14 01:47=20
=46reeSerifItalic.ttf=20
=2D -> /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
lrwxrwxrwx 1 root root 48 2003-12-14 01:47=20
=46reeSerif.ttf -> /usr/share/fonts/truetype/freefont/FreeSerif.ttf
lrwxrwxrwx 1 root root 45 2003-12-14 01:47 gbsn00lp.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/gbsn00lp.ttf
lrwxrwxrwx 1 root root 45 2003-12-14 01:47 gkai00mp.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/gkai00mp.ttf
lrwxrwxrwx 1 root root 49 2003-12-14 01:47 thrybi__.ttf=20
=2D -> /usr/share/fonts/truetype/thryomanes/thrybi__.ttf
lrwxrwxrwx 1 root root 49 2003-12-14 01:47 thryb___.ttf=20
=2D -> /usr/share/fonts/truetype/thryomanes/thryb___.ttf
lrwxrwxrwx 1 root root 49 2003-12-14 01:47 thryi___.ttf=20
=2D -> /usr/share/fonts/truetype/thryomanes/thryi___.ttf
lrwxrwxrwx 1 root root 49 2003-12-14 01:47 thryn___.ttf=20
=2D -> /usr/share/fonts/truetype/thryomanes/thryn___.ttf
lrwxrwxrwx 1 root root 44 2004-01-11 20:41 ukaimbe.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/ukaimbe.ttf
lrwxrwxrwx 1 root root 41 2004-01-11 20:41 ukai.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/ukai.ttf
lrwxrwxrwx 1 root root 45 2004-01-11 20:42 umingmbe.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/umingmbe.ttf
lrwxrwxrwx 1 root root 42 2004-01-11 20:41 uming.ttf=20
=2D -> /usr/share/fonts/truetype/arphic/uming.ttf
lrwxrwxrwx 1 root root 55 2003-12-14 01:47 VeraBd.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf
lrwxrwxrwx 1 root root 55 2003-12-14 01:47 VeraBI.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf
lrwxrwxrwx 1 root root 55 2003-12-14 01:47 VeraIt.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraIt.ttf
lrwxrwxrwx 1 root root 57 2003-12-14 01:47 VeraMoBd.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf
lrwxrwxrwx 1 root root 57 2003-12-14 01:47 VeraMoBI.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBI.ttf
lrwxrwxrwx 1 root root 57 2003-12-14 01:47 VeraMoIt.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt.ttf
lrwxrwxrwx 1 root root 57 2003-12-14 01:47 VeraMono.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf
lrwxrwxrwx 1 root root 57 2003-12-14 01:47 VeraSeBd.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf
lrwxrwxrwx 1 root root 55 2003-12-14 01:47 VeraSe.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/VeraSe.ttf
lrwxrwxrwx 1 root root 53 2003-12-14 01:47 Vera.ttf=20
=2D -> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
taoyuan:/home/arne#
taoyuan:/home/arne# ls -l /usr/share/fonts/truetype/arphic/
total 90680
=2D -rw-r--r-- 1 root root 10417860 1999-09-18 04:17 bkai00mp.ttf
=2D -rw-r--r-- 1 root root 12643248 1999-09-18 04:16 bsmi00lp.ttf
=2D -rw-r--r-- 1 root root 37591 2004-02-21 17:51=20
fonts.cache-1
=2D -rw-r--r-- 1 root root 5192076 2000-01-05 22:51 gbsn00lp.ttf
=2D -rw-r--r-- 1 root root 4633128 2000-01-05 22:52 gkai00mp.ttf
=2D -rw-r--r-- 1 root root 15383372 2004-01-11 20:33 ukaimbe.ttf
=2D -rw-r--r-- 1 root root 15383972 2004-01-11 20:31 ukai.ttf
=2D -rw-r--r-- 1 root root 14503436 2004-01-11 20:36 umingmbe.ttf
=2D -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=20
server
# if the local font server has problems, we can fall back on=20
these
FontPath "/usr/lib/X11/fonts/TrueType"
FontPath =20
"/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
[...]
=2D -arphic-ar pl kaitim big5-bold-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim big5-bold-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim big5-bold-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim big5-bold-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim big5-medium-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim big5-medium-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim big5-medium-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim gb-bold-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim gb-bold-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim gb-bold-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim gb-bold-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim gb-medium-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim gb-medium-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim gb-medium-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl kaitim gb-medium-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl kaitim uni mbe-bold-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni mbe-bold-r-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni mbe-medium-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni mbe-medium-r-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni-bold-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni-bold-r-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni-medium-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl kaitim uni-medium-r-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-bold-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-bold-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-bold-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-bold-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-medium-i-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-medium-i-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
=2D -arphic-ar pl mingti2l big5-medium-r-normal--0-0-0-0-m-0-iso10646-1
=2D -arphic-ar pl mingti2l uni mbe-bold-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl mingti2l uni mbe-bold-r-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl mingti2l uni mbe-medium-i-normal--0-0-0-0-p-0-iso10646-1
=2D -arphic-ar pl mingti2l uni mbe-medium-r-normal--0-0-0-0-p-0-iso10646-1
=2D -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=20
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,=20
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=3D"en_US.UTF-8"
declare -x LC_CTYPE=3D"zh_TW.UTF-8"
[...]
However, when I link the truetype fonts=20
to /usr/X11R6/lib/X11/fonts/TrueType and create the fonts.scale and=20
fonts.dir manually and put this path into the X-config instead of the=20
defoma path, xfontsel can start and also shows the truetype fonts. Xcin=20
however cannot find any iso10646-1 font... strange.
Cheers
Arne
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAPK7ibp/QbmhdHowRArP+AJ9khwPANrSSiN/yo86R0AaSvCrz+gCeI7Hj
aacyZH2DenVY5J1U5O+d+a4=3D
=3DZI+i
=2D----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Florent Rougon 2004-02-25, 10:33 am |
| Arne Goetje <20030910antispam@gmx.net> wrote:
> 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.
I have no specific advice to give you, but in your place, I would
attempt to reproduce the situation that "works" (with fonts.dir and such
files created "manually", as you said) in a directory (under ~/tmp or
whatever) containing only links to the problematic fonts and minimal
working fonts.{dir,alias,scale} and encodings.dir for these fonts.
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType should be removed from
the X font path for this test and the fonts should not be X-accessible
from /usr/X11R6/lib/X11/fonts/TrueType either.
Then, use "xset fp+ directory" and "xset fp rehash" and verify that you
can use the fonts as you like.
After that, you can compare the working fonts.{dir,scale,alias} and
encodings.dir with the ones generated by x-ttcidfont-conf under
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType. Then you will probably
find a bug in either x-ttcidfont-conf or the package(s) that register(s)
the fonts to defoma (since it is defoma that makes x-ttcidfont-conf
know about the fonts).
--
Florent
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Arne Götje (高盛華) 2004-03-17, 9:42 am |
| =2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 25 February 2004 23:08, Florent Rougon wrote:
> After that, you can compare the working fonts.{dir,scale,alias} and
> encodings.dir with the ones generated by x-ttcidfont-conf under
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType. Then you will
> probably find a bug in either x-ttcidfont-conf or the package(s) that
> register(s) the fonts to defoma (since it is defoma that makes
> x-ttcidfont-conf know about the fonts).
Ok, I think I found the problem. The problem lies in the fonts.scale and=20
fonts.dir files in /var/lib/defoma/x-ttcidfont-conf.d/TrueType.
Example for the ttf-arphic-bsmi00lp package:
The entries in fonts.scale are:
=2D -------------------------------------------------
ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-c-0-big5-0
bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-big5-0
bw=3D0.5:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-c-0-iso10646-1
bw=3D0.5:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-c-0-iso8859-1
bw=3D0.5:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
bw=3D0.5:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-iso8859-1
bw=3D0.5:ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-c-0-iso10646-1
bw=3D0.5:ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-c-0-iso8859-1
bw=3D0.5:ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-c-0-iso10646-1
bw=3D0.5:ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-c-0-iso8859-1
ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-c-0-big5-0
ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-c-0-big5-0
vl=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-m-0-big5-0
vl=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-m-0-iso10646-1
vl=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-i-normal--0-0-0-0-m-0-iso8859-1
vl=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-m-0-big5-0
vl=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-m-0-iso10646-1
vl=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-m-0-iso8859-1
vl=3Dy:ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-m-0-big5-0
vl=3Dy:ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-m-0-iso10646-1
vl=3Dy:ds=3Dy:ai=3D0.167:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-i-normal--0-0-0-0-m-0-iso8859-1
vl=3Dy:ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-m-0-big5-0
vl=3Dy:ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-m-0-iso10646-1
vl=3Dy:ds=3Dy:bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-bold-r-normal--0-0-0-0-m-0-iso8859-1
=2D ---------------------------------------------------
As you can see, the majority of the entries have formatting parameters=20
in front of the fontname.=20
When I create the fonts.scale, fonts.dir and fonts.alias files=20
in /usr/lib/X11/fonts/TrueType amnually for this font and put that font=20
path into XF86Config-4 in front of the defoma path, everythig works=20
fine. xcin uses these entries, while other apps seem to use the defoma=20
entries. The only difference between the two versions is, that the=20
formatting attributes are missing.
I've noted the following behaviour:
=2D - when deleting the formatting parameters in the defoma fonts.scale and=
=20
fonts.dir it still does not work.
=2D - when adding additional lines without the parameters it will also not=
=20
work. I need to create them in a seperate directory and put that one in=20
front of the defoma path in XF86Config-4.
=2D - defoma uses 24 styles for the same font thanks to the formatting=20
attributes. When I copy the 24 lines without the attributes into the=20
different directory, xcin works, but it will only use the original font=20
specification built into the font. So, basically I can delete the other=20
entries, which leaves 3 entries for this font:
=2D ---------------------------------------------------
bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-big5-0
bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
bsmi00lp.ttf -arphic-ar pl mingti2l=20
big5-medium-r-normal--0-0-0-0-c-0-iso8859-1
=2D ---------------------------------------------------
The fonts.alias file can also be stripped the the 14 entries which=20
support these 3 encodings.
Solution: create the entries for each font like my example above=20
additionally into /usr/lib/X11/fonts/TrueType and put the path in front=20
of the defoma path in XF86Config-4.
The hints file for the ttf-arphic-bsmi00lp package looks liike this:
=2D ----------------------------
category truetype
begin /usr/share/fonts/truetype/arphic/bsmi00lp.ttf
Family =3D Arphic-Ming
FontName =3D ShanHeiSun-Light
Encoding =3D Unicode
Location =3D Chinese-Taiwan English
Charset =3D ISO10646-1 BIG5 ISO8859-1
UniCharset =3D BIG5 ISO8859-1
GeneralFamily =3D Ming
Weight =3D Light
Width =3D Fixed
Shape =3D Upright
Alias =3D Arphic-MingB5 ArphicMingB5
Foundry =3D Arphic
Priority =3D 20
X-Family =3D AR_PL_Mingti2L_Big5
X-Weight =3D medium
X-ElementAlias =3D foundry=3Ddefault:family=3Dming:resx=3D7
2:resy=3D72
TTCap =3D halfwidth-bw=3D0.5 italic-angle=3D0.167 no-roblique no-oblique=
=20
no-ritalic
end
=2D -----------------------------------
I'd like to know if the solution I proposed will work be simply=20
modifying the hints file (and if yes, how?), or if defoma itself needs=20
to be modified.
Can someone give me a hint where to find detailed documentation about=20
how defoma works?
Cheers
Arne
=2D --
Arne G=C3=B6tje (=E9=AB=98=E7=9B=9B=E8=8F=AF) <20030910antispam@gmx.net>
(Spam catcher. Address might change in future!)
PGP/GnuPG key: 1024D/685D1E8C
=46ingerprint: 2056 F6B7 DEA8 B478 311F 1C34 6E9F D06E 685D 1E8C
Key available at wwwkeys.pgp.net. Encrypted e-mail preferred.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAV+Z1bp/ QbmhdHowRAtKTAKCt0oqdxdqYMbrxwIcDZA7Evs3
GWACcC5tb
opEfMutRHwlU2KVDKV8in3I=3D
=3DHziu
=2D----END PGP SIGNATURE-----
| |
| Florent Rougon 2004-03-17, 9:43 am |
| "Arne Gtje (高盛華)" <20030910antispam@gmx.net> wrote:
> Ok, I think I found the problem. The problem lies in the fonts.scale and
> fonts.dir files in /var/lib/defoma/x-ttcidfont-conf.d/TrueType.
OK.
> Example for the ttf-arphic-bsmi00lp package:
> The entries in fonts.scale are:
> -------------------------------------------------
> ai=0.167:bsmi00lp.ttf -arphic-ar pl mingti2l
> big5-medium-i-normal--0-0-0-0-c-0-big5-0
>
> bsmi00lp.ttf -arphic-ar pl mingti2l
> big5-medium-r-normal--0-0-0-0-c-0-big5-0
[...]
The lines are wrapped, but I suppose your MUA did this.
> ---------------------------------------------------
> As you can see, the majority of the entries have formatting parameters
> in front of the fontname.
> When I create the fonts.scale, fonts.dir and fonts.alias files
> in /usr/lib/X11/fonts/TrueType amnually for this font and put that font
> path into XF86Config-4 in front of the defoma path, everythig works
> fine. xcin uses these entries, while other apps seem to use the defoma
> entries. The only difference between the two versions is, that the
> formatting attributes are missing.
>
> I've noted the following behaviour:
> - when deleting the formatting parameters in the defoma fonts.scale and
> fonts.dir it still does not work.
If you have the same font files and the same non-fonts files
(fonts.scale & Co), it should really work. Did you use diff to compare
the files?
> The hints file for the ttf-arphic-bsmi00lp package looks liike this:
> ----------------------------
> category truetype
> begin /usr/share/fonts/truetype/arphic/bsmi00lp.ttf
> Family = Arphic-Ming
> FontName = ShanHeiSun-Light
> Encoding = Unicode
> Location = Chinese-Taiwan English
> Charset = ISO10646-1 BIG5 ISO8859-1
> UniCharset = BIG5 ISO8859-1
> GeneralFamily = Ming
> Weight = Light
> Width = Fixed
> Shape = Upright
> Alias = Arphic-MingB5 ArphicMingB5
> Foundry = Arphic
> Priority = 20
> X-Family = AR_PL_Mingti2L_Big5
> X-Weight = medium
> X-ElementAlias = foundry=default:family=ming:resx=72:resy
=72
> TTCap = halfwidth-bw=0.5 italic-angle=0.167 no-roblique no-oblique
> no-ritalic
> end
> -----------------------------------
You should compare this to:
/usr/share/doc/defoma-doc/developers.html/ch1.html#s1.1
Unfortunately, the very parameter that seemed to cause problems in your
fonts.scale file, TTCap, is not documented there.
> I'd like to know if the solution I proposed will work be simply
> modifying the hints file (and if yes, how?)
I hope so...
> Can someone give me a hint where to find detailed documentation about
> how defoma works?
Apart from /usr/share/doc/defoma-doc/, the sample hint files under
/usr/share/doc/defoma/ and the manpages in the defoma package, I don't
think there is much documentation other than the code.
--
Florent
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|