I've been dealing with font ugliness lately. I found that installing gsfonts-x11 gave me really ugly fonts in emacs21 and also in all Tk applications (tkabber, offlineimap). I was seeing output like (paraphrased from memory): 'Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct' when starting these applications. Removing gsfonts-x11 gave me the dreaded emacs empty boxes problem, though my Tk apps looked much nicer (though they also looked like they were just using wrong fonts: some fixed-width font instead of the requested Helvetica). I fixed my workstation today by following advice found in The Debian Reference §9.4.13 http://www.debian.org/doc/manuals/reference/ch-tune.en.html#s-xfs-tt Specifically, moving Type1 down to the bottom of the list did the trick. My Files section now looks like this: Section "Files" FontPath "unix/:7100" # local font server # Scalable TrueType and CID Fonts (via DeFoMa): FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID" # if the local font server has problems, we can fall back on these 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/75dpi" FontPath "/usr/lib/X11/fonts/100dpi" FontPath "/usr/lib/X11/fonts/Type1" EndSection You'll notice I also placed 75dpi above 100dpi. It was working before this, but the displayed fonts were very large -- I'm running at a resolution of 72x72, so this switch gives more realistic font sizes. If there is anything else I can do to clarify this situation (e.g. switch my FontPath entries back to the old way and report some more systematic test results with actual pasted error messages), please let me know so that I can test and report back my results. This was a very aggravating problem, so I'm eager to help in any way to make sure new users never have to encounter it. good times, Vineet -- http://www.doorstop.net/
Attachment:
signature.asc
Description: Digital signature