[bug] Alignment of non-left-aligned text

Whilst making some templates for TechDraw I noticed that even after I got rid of all transform and xml:space=“preserve” statments, text that was centred or right-aligned would would end up consistently to the left of where it was supposed to be. Compare how this test SVG[1] looks in Inkscape:
justification_inkscape.png
with how it looks in FreeCAD 0.21[2] and 0.22[3]:
justification_FC21.png
Both versions show identical leftward shifts of the non-left-aligned text, with the right-aligned text being notable more shifted.

Interestingly, if I use TechDraw_Symbol to import the same SVG, FreeCAD almost gets it correct[4]:
justification_FC22_symbol.png
You have to zoom in to see it, but centred and right-aligned text is shifted slightly to the right this time, with the shift being greater for right-aligned text. Again, the shift is identical for 0.21 and 0.22^.

If you export the page to SVG via TechDraw_ExportPageSVG, then open the output SVG in Inkscape it look fine, but if you export to PDF directly (via File > Export PDF…) then the shift persists. This more or less mandates exporting to SVG then using Inkscape or whatever else to export to PDF.

I’m pretty sure this is just a straight up bug, but I want to make sure I’m not missing something obvious before submitting something to the bug tracker.

[1]
justification.svg
All of capital As have their text anchor on the long green line. The red capital As are duplicates converted to paths and placed behind the corresponding text object - they should be covered by the black text.

[2]

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * Assembly4 0.12.5
  * ExplodedAssembly
  * fasteners 0.4.52

[3]

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.35735 (Git)
Build type: Release
Branch: main
Hash: c12a5c2a163c1a277cf273106899209792be152d
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * Assembly4 0.12.5
  * ExplodedAssembly
  * fasteners 0.4.52