SVG: rendering of Draft annotations in DraftViews and ArchViews not accurate
- Dominant language
- C++
- Stars
- 33.6k
- Forks
- 6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Version
0.21 (Development)
### Full version info
```
OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 0.21.0.33458 (Git)
Build type: Release
Branch: master
Hash: 8b89dd29d2382c72d738c52e8974216130ffa9db
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
```
### Subproject(s) affected?
Draft
### Problem description
The SVG rendering of Draft annotations in TechDraw DraftViews and TechDraw ArchViews is not accurate. Note that this SVG rendering is created by Draft code and this is therefore primarily a Draft issue and not a TechDraw issue.
1. Text height is ignored in SVG. See Draft_AngularDims_DraftView.FCStd.
2. Dim arrows are bigger in SVG. See Draft_AngularDims_DraftView.FCStd.
3. Text alignment and position of angular Draft Dimensions is different in SVG. See Draft_AngularDims_DraftView.FCStd.
4. SVG of Draft Labels and Draft Texts that are on the XZ or the YZ plane is faulty. See Draft_Label_ArchView.FCStd.
5. Text alignment and position of linear Draft Dimensions is different in SVG if they are on the XZ or the YZ plane. See Draft_Label_ArchView.FCStd.
Forum topic:
https://forum.freecad.org/viewtopic.php?t=79481
[Draft_DraftView_ArchView.zip](https://github.com/FreeCAD/FreeCAD/files/11990499/Draft_DraftView_ArchView.zip)
Files in ZIP:
* Draft_AngularDims_DraftView.FCStd
* Draft_Label_ArchView.FCStd



### Anything else?
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Reproduce the SVG export from Draft_DraftView_ArchView.zip using the Draft annotations in TechDraw DraftViews and ArchViews. Compare the SVG with the supplied FCStd examples, checking text height, arrow size, alignment, position, and XZ/YZ-plane rendering. Done means the exported SVG matches the annotation layout and sizing shown in the source views.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100