|
From: Ethan A M. <merritt@u.washington.edu> - 2006-10-15 14:38:32
|
On Sunday 15 October 2006 04:52 am, Hans-Bernhard Br=F6ker wrote: > Ethan A Merritt wrote: >=20 > > Known limitations: > > text centering in svg was not good to begin with, and if the > > text includes utf-8 characters the centering gets even worse. >=20 > If so, that's a bug in the enhanced mode implementation. Non-enhanced=20 > SVG_put_text passes this job to the only instance that can handle it:=20 > the SVG file itself, and its interpreter(s). I agree. It's a failure of the enhanced mode implementation. The current code is reduced to counting characters and approximating their net width so that it can place them properly. A better implementation would somehow tell the svg interpreter to save/restore a particular position so that we can return to it later.=20 The corresponding terminal entry points at ENHsvg_open() are marked =46IXME, waiting for someone who knows svg better than I do. =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |