From: SourceForge.net <no...@so...> - 2006-06-16 15:08:06
|
Bugs item #1507349, was opened at 2006-06-16 16:59 Message generated for change (Comment added) made by michaeljgruber You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442886&aid=1507349&group_id=45430 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael J Gruber (michaeljgruber) Assigned to: Nobody/Anonymous (nobody) Summary: RFE: text along path Initial Comment: The attached diff implements typesetting of text along a path as a decorator (curvedtext). I put it in the bug tracker so that it doesn't get lost. It's a diff to r2824 (taking into account the reversal of trafos in canvas.py (r2728->r2730)). >From the docstring: """a text decorator for curved text - text: is typeset along the path to which this decorator is applied - relarclenpos: position for the base point of the text (default: 0) - arlenfrombegin, arclenfromend: alternative ways of specifying the position of the base point; use of relarclenpos, arclenfrombegin and arclenfromend is mutually exclusive - textattrs, texrunner: standard text arguments (defaults: [] resp None) """ Files touched aside from deco.py: dvifile.__init__() in dvifile.py gets a new parameter singlecharmode which defaults to 0; dvifile.putchar() switches to single character mode if set to 1. texrunner.__init__(), texrunner.finishdvi(), texrunner.text() and texrunner.textboxes() in text.py get the same parameter so that it can be passed from the texrunner to dvifile. curvedtext switches to singlecharmode only while it is needed. Basic idea for curvedtext goes back to schindmi, I think. ---------------------------------------------------------------------- >Comment By: Michael J Gruber (michaeljgruber) Date: 2006-06-16 17:08 Message: Logged In: YES user_id=1454635 Attaching a simple example: It demonstrates how to achieve several orientations using text.halign.*, relarclenpos and path.reversed(); and how to set different stroke attributes on the text and the underlying path. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442886&aid=1507349&group_id=45430 |