ttmkfdir throws a Segmenation Fault for at least two truetype font directories. Partial Output from /etc/init.d/xfs mkfontdirs * /usr/share/fonts/util... [ ok ] * /usr/share/fonts/local... /etc/init.d/xfs: line 230: 1079 Segmentation fault /usr/X11R6/bin/ttmkfdir -x 2 - e /usr/share/fonts/encodings/encodings.dir -o ${x}/fonts.scale -d ${x} >/dev/null [ ok ] * /usr/share/fonts/TTF... /etc/init.d/xfs: line 230: 1083 Segmentation fault /usr/X11R6/bin/ttmkfdir -x 2 - e /usr/share/fonts/encodings/encodings.dir -o ${x}/fonts.scale -d ${x} >/dev/null [ ok ] # strace /usr/X11R6/bin/ttmkfdir -x 2 - e /usr/share/fonts/encodings/encodings.dir -o /usr/share/fonts/TTF/fonts.scale - d /usr/share/fonts/TTF (output attached) By examing the strace output, i found that /usr/share/fonts/encodings - suneu-greek.enc.gz - large/cns11643-1.enc.gz - large/cns11643-2.enc.gz - large/cns11643-3.enc.gz were giving problems and thus i moved those away. The problem dissapeared, but this doesn't seem to be a permanent solution. X Window System Version 6.7.99.903 (6.8.0 RC 3) Build Operating System: Linux 2.6.8.1 i686 [ELF] Current Operating System: Linux xinu 2.6.8.1 #1 Thu Aug 19 09:44:54 CEST 2004 i686 Build Date: 31 August 2004 gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) Tried the cvs HEAD too, had the same problem. Attached (should be) the strace output and the contents of /usr/share/fonts/TTF
Created attachment 785 [details] Contents of the /usr/share/fonts/TTF directory
Created attachment 786 [details] strace output of ttmkfdir
same problem here, with the same files same system (gentoo) too :)
Isn't "ttmkfdir" depreciated (and it isn't part of the Xorg tree) since "mkfontscale" supersets it's functionality ? "mkfontscale" doesn't crash with these files...
Created attachment 1439 [details] [review] correct-encoding.patch Patch and below comment from Benoit Boissinot: This patch correct the 'UNDEFINE' statement from some encoding, since they shouldn't be greater than the 'SIZE' of the encoding.
ienup: Can you check whether attachment #1439 [details] [review] is correct, please ?
It's almost correct, except that the line in the suneu-greek encoding should say UNDEFINE 0x00 0xFF Feel free to commit it if you get around to it before me. Juliusz
Fixed, thanks for your help. Donnie: there's nothing that says that UNDEFINE cannot be out of range; I've carefully designed the encoding format so that you can simply say UNDEFINE 0 0xFFFF and be done with it. The bug is in ttmkfdir. And Roland is right, ttmkfdir is superseded by mkfontscale. If there's any reason why you folks are still using ttmkfdir, please let me know what features are missing in mkfontscale. Juliusz
(In reply to comment #8) > Donnie: there's nothing that says that UNDEFINE cannot be out of range; I've > carefully designed the encoding format so that you can simply say > > UNDEFINE 0 0xFFFF > > and be done with it. The bug is in ttmkfdir. OK, thanks for the info. Unfortunately ttmkfdir's mostly unmaintained at this point from what I can tell. =\ > And Roland is right, ttmkfdir is superseded by mkfontscale. If there's any > reason why you folks are still using ttmkfdir, please let me know what features > are missing in mkfontscale. I keep hearing vague noises about CJK stuff working better in ttmkfdir, but I have no experience in this area to judge.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.