On Mon, Aug 21, 2006 at 06:35:45PM -0400, Nathanael Nerode wrote: > I haven't quite figured out how to detect whether the bug is present or not. > (How do I spot whether a fontname is a 'fixed size' name for a scalable font, > or a real fixed-size font?) > > Is this bug still present in the current X.org in 'sid' or 'etch'? It looks > to > me like it is, but I'm not 100% sure. > > -- > Nathanael Nerode <[EMAIL PROTECTED]> > > Read it and weep. > http://rawstory.com/news/2005/Text_of_Gore_speech_0116.html >
I haven't been able to reproduce the original bug because one of the condition needed was Bug#156118 which has been fixed in the meantime. However I have been able to verify that the other conditions are still met and the X behavior can still be reproduced: - X server at 75 dpi - the Type1 module is loaded in the X server - the directory /usr/lib/X11/fonts/Type1 is at the end of X fontpath - package gsfonts-x11 installed I have run the following commands: ### install package gsfonts-x11 # apt-get install gsfonts-x11 ### start a new X server (as root) # startx /usr/bin/icewm -- :1 -dpi 75 & ### in new display open an xterm and run the following script: #!/bin/sh xset fp /usr/X11R6/lib/X11/fonts/misc/:unscaled,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/Type1 xset fp rehash xlsfonts -fn "-*-helvetica-*-*-*-*-*-*-*-*-*-*-iso8859-1" | grep p-0-iso8859-1 You should see the following output: -adobe-helvetica-bold-i-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-i-normal--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-bold-o-narrow--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-o-narrow--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-bold-o-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-o-normal--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-bold-r-narrow--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-r-narrow--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-r-normal--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-medium-i-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-medium-i-normal--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-medium-o-narrow--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-medium-o-narrow--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-medium-o-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-medium-o-normal--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-medium-r-narrow--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-medium-r-narrow--12-120-75-75-p-0-iso8859-1 -adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-medium-r-normal--12-120-75-75-p-0-iso8859-1 The bogus fonts are those with pxlsz=12 and awgWdth=0. Note that the pxlsz depends on the dpi of the server and will be different if you run the server at a different dpi. I don't know if it is correct for the X server to list scalable fonts as fixed fonts but in that case I think they should be listed *after* the true fixed fonts, while at the present it is the contrary: $ xlsfonts -fn "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" -adobe-helvetica-medium-r-normal--12-116-75-75-p-0-iso8859-1 -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1 In other words it could be simply a problem of sorting the results in a better way. Since the Tk bug has been fixed you can't reproduce the bug with wish but you can show a similar behavior with the following commands: xfd -fn `xlsfonts -fn "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" | head -1` & xfd -fn `xlsfonts -fn "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" | tail -1` & I have run the test on ubuntu hoary with the following packages: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-=========================-=========================================== ii xserver-common 6.8.2-10.2 files and utilities common to all X servers ii xserver-xorg 6.8.2-10.2 the X.Org X server ii gsfonts 8.14+v8.11+urw-0.1ubuntu1 Fonts for the Ghostscript interpreter(s) ii gsfonts-x11 0.17 Make Ghostscript fonts available to X11 -- Massimo Dal Zotto -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]