> Unfortunately, the fontname mapping between the font specifed in xfont > directive and ps fonts used by mgp2ps is hard-coded in print.c. > Thus, a practical way (it's quite ugly though) for your case is to > applying the following patch. > Using -t option is a bit tricky and it works with the tfont directive only. > > *** print.c.orig 2005-02-11 02:54:21.000000000 +0900 > --- print.c 2005-02-11 02:54:10.000000000 +0900 > *************** > *** 161,166 **** > --- 161,171 ---- > { CTL_XFONT2, ASCII, "courier-medium-o", "Courier-Oblique" }, > { CTL_XFONT2, ASCII, "courier-bold-r", "Courier-Bold" }, > { CTL_XFONT2, ASCII, "courier-bold-i", "Courier-BoldOblique" }, > + { CTL_XFONT2, ASCII, "Verdana", "Times" }, > + { CTL_XFONT2, ASCII, "Verdana:style=Bold", "Times-Bold" }, > + { CTL_XFONT2, ASCII, "Courier", "Courier" }, > + { CTL_XFONT2, ASCII, "Verdana:style=Italic", "Times-Italic" }, > + { CTL_XFONT2, ASCII, "Verdana:style=Bold Italic", "Time-BoldItalic" }, > { CTL_XFONT2, ASCII, "times*", "Times" }, > { CTL_XFONT2, ASCII, "helvetica*", "Helvetica" }, > { CTL_XFONT2, ASCII, "courier*", "Courier" }, I just tried this a couple of days ago. It didn't work at all. But, then I swapped it around to: { CTL_XFONT2, ASCII, "Times", "Verdana" }, { CTL_XFONT2, ASCII, "Times-Bold", "Verdana:style=Bold" }, { CTL_XFONT2, ASCII, "Courier", "Courier" }, { CTL_XFONT2, ASCII, "Times-Italic", "Verdana:style=Italic" }, { CTL_XFONT2, ASCII, "Times-BoldItalic", "Verdana:style=Bold Italic" }, which works a little better. I get the standard font ("Verdana") but none of the bold/italics variants of the font when generating PS (they all work on the screen). Any further thoughts? Thanks! allman -- Mark Allman -- ICIR -- http://www.icir.org/mallman/
Attachment:
pgpLtTdedNan8.pgp
Description: PGP signature