On Sex, 2009-06-05 at 13:49 -0700, Edwin Woollett wrote:
> First plotdf save to c:\work2\ch1p8b.eps is ok.
>
> Second plotdf save to c:\work2\ch1p8c.eps gives
> error message:
>
> TK application error: named font "hevetical 16 normal"
> already exists.
Hello,
it is a bug that I accidentally introduced in 5.18.1. A quick-hack to
fix it is to replace lines 3797 and 3798 in xmaxima from:
set fontMap([font create -family {Bitstream Vera Sans Mono} -size 10])
[list Courier 10]
set fontMap([font create {helvetica 16 normal}]) [list Helvetica 16]
to:
catch {set fontMap([font create -family {BitstreamVeraSansMono} -size
10]) [list Courier 14]}
catch {set fontMap([font create {helvetica 16 normal}]) [list Helvetica
16]}
Unfortunately, in Windows xmaxima is wrapped inside a starkit file so
you need some knowledge of those files in order to fix it. I will see if
I can modify that starkit in the next few days. In the meantime, you can
call plotdf from console-maxima instead of xmaxima. In console-maxima a
new wish process is open for each plotdf, so that error
does not appear.
Regards,
Jaime