On Wed, 22 Nov 2000, Josh Huber wrote:
> [sorry to resend this, but I was having problems with my mail
> yesterday, and this may have not made it through].
>
> I'm having some serious problems with Dia right now.
>
> The courier font that dia is using is showing up different on the
> screen and when printed. I'm using ghostscript to render the print,
> and have the ghostscript fonts (the urw ones) installed.
>
> I'm running debian, and I've got the gsfonts and gsfonts-x11 packages
> installed. The -x11 package provides symlinks to the ghostscript
> fonts into /usr/lib/X11/fonts/Type1, and provides aliases for them.
>
> Additionally, I'm using xfs to serve the fonts up. I get duplicate
> font entries for courier (and probably others, but I'll just
> concentrate on these for now), which I assume come from the standard
> fonts in xfonts-scalable, and the additional gsfonts showing up.
>
> So, presumably, the problem is that dia is just using whatever courier
> font it finds first, which happens to be the wrong one for display,
> but then when printed, it's using the other font?
>
> Out of curiousity, why have the fonts been hard-coded in dia? If I
> were able to select a different font, this wouldn't be a problem...
> The URW courier alias points to a nimbus font, but that doesn't show
> up in the list. (obviously)
>
> I looked at lib/font.c, and even tried switching the courier font to
> nimbus (sans, etc) but dia complaind about the courier font and
> reverted to the backup font.
>
> Does anyone have any suggestions on how to get the URW courier font to
> be used for display?
Font handling under X sucks. There is no easy way to go from an X font
name to the type1 outline font (and it may not even be a Type1 font,
so might be unusable from postscript).
That is why dia limits you to the standard postscript fonts. You can set
up your X server so that it provides the URW fonts under the adobe
names. There is a question in the FAQ on the website about it.
James.