[gl2ps] Font Changes
Shai Ayal
shaiay at yahoo.com
Wed Jul 14 19:13:55 CEST 2004
Hi
first, thank you for the alignment code. Now OctPlot's hardcopy is
in-par with it's screen output (not very nice, but it works :) ).
My future plans are to implement TeX like support. This means the I will
have to change font/size in the middle of a string. Do you have any
ideas on how this could be implemented in gl2ps? I understand that
currently gl2ps has no knowledge of the font metrics, all is done by the
ps/pdf/tex parser. Can you think of any way to implement this (i.e.
gl2psText returning the new raster position?).
The easiest way I can think of (easy for gl3ps) is add a
gl2psRawPS(char*) function which will allow you to emit raw postscript
at the current raster position. This approach has a major drawback: It
will break the abstraction of gl2ps in respect to which back-end is used.
I am eager to hear your thoughts on this
Shai