FreeCAD/FreeCAD

SVG: rendering of Draft annotations in DraftViews and ArchViews not accurate

Open

#9,888 opened on Jul 8, 2023

View on GitHub
 (7 comments) (2 reactions) (0 assignees)C++ (5,550 forks)batch import
File format: SVGHelp wantedMod: DraftType: Bugno-auto-close

Repository metrics

Stars
 (30,913 stars)
PR merge metrics
 (Avg merge 24d 7h) (217 merged PRs in 30d)

Description

Is there an existing issue for this?

  • 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

Files in ZIP:

  • Draft_AngularDims_DraftView.FCStd
  • Draft_Label_ArchView.FCStd

Draft_AngularDims_DraftView Draft_Label_3DView Draft_Label_ArchView

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributor guide