TextAlignment is the vertical alignment, while Justification is the
horizontal alignment. here, get_text was passed the vertical, while it
expected the horizontal. This caused the alignment of a Label to be
wrong in the resulting SVG (e.g. in a TechDraw draft view).
This seems to have been broken since SVG support for Labels was first
introduced in commit 3391a5ea4b (Initial work, only text (no lines)).
2020 May
These modules provide supporting functions for dealing with the custom "scripted objects" defined within the workbench.
The functions are meant to be used in the creation step of the objects,
by the "make functions" in draftmake/, but also by the graphical
"Gui Commands" modules in draftguitools/ and drafttaskpanels/.
These functions should deal with the internal shapes of the objects,
or other special properties. They should not be very generic;
if they are very generic then they are more appropriate to be included
in the modules in draftutils/.
For more information see the thread: [Discussion] Splitting Draft tools into their own modules