[gl2ps] Re: an update
Christophe Geuzaine
geuzaine at acm.caltech.edu
Sat Nov 8 08:16:43 CET 2003
Prabhu Ramachandran wrote:
>>>>>>"CG" == Christophe Geuzaine <geuzaine at acm.caltech.edu> writes:
>
>
> CG> Micha Bieber wrote:
> >>> From the PDF spec:
> [snip]
> >> After inspecting ghostscript and pdftex sources regarding font
> >> selection rules and substitution I came to the conclusion to
> >> limit the use to the fonts above. Any application should be
> >> able to use this sort of files. Everything more is higher magic
> >> and IMO beyond the scope of gl2ps
>
> CG> I completely agree.
>
> OK, that is fine by me too. I plan on doing something like this for
> the vtkGL2PSExporter.
>
> if (gl2ps != NULL) {
> if (gl2ps->format == GL2PS_PDF) {
> // replace Arial with Helvetica
> // handle fonts to use standard ones only.
> }
> else {
> // do existing stuff since that works for other formats.
> }
> }
>
> I also tested the fonts that Micha was suggesting and they all work
> great! Let me know if you see anything wrong in the above.
>
Why not add a function in vtk (in your wrapper class?) to do the name
conversion in all cases? I think it might be a good idea to stick to the
standard names with regular PostScript output, too.
Just my 2 cents ;-)
Christophe
--
Christophe A. Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org