On Fri, 31 Oct 2003, Petr Mikulik wrote:
> It would need a routine like strlen_enhanced_text(char*) which would
> estimate the width of the label. Additionally, it would be of great use for
> gnuplot's auto sizing of margins et al, where it counts all characters of
> "/Symbol ...".
This has been a problem ever since the enhance postscript driver was added
to the program. Its integration with the terminal-independant core engine
of gnuplot is so weak as to be effectively non-existant. It's similar
for the TeX terminals, but there the task would be hopeless anyway, and we
do offer a possiblity to at least lay off the task of centering texts to
the TeX engine.
For PostScript-Enhanced (and the other terminals who learned the same
syntax, since) it's gnuplot that does the positioning, but it's being left
dangling in the air regarding support by the actual driver. At the
minimum, there should be an addition to the term API that lets the core
request the actual size of a given string, in terminal units.
Possibly even better, the whole 'enhanced' stuff should be moved into the
core, where other terminals could benefit from it more easily without
needing to reinvent wheels.
Hans-Bernhard Broeker (broeker@...)
Even if all the snow were burnt, ashes would remain.