TechDraw does not work with SVG parameter dominant-baseline

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
tobiasfalk
Posts: 93
Joined: Fri Feb 05, 2021 2:35 pm

TechDraw does not work with SVG parameter dominant-baseline

Post by tobiasfalk »

If you create a template and use the parameter dominant-baseline for setting the text position point in to the middle height for example, the TechDraw viewer does not render it properly. It is trivial if you use it as a SVG parameter or as a Style parameter.
dominant-baseline="middle"
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: TechDraw does not work with SVG parameter dominant-baseline

Post by Kunda1 »

@tobiasfalk welcome to the FreeCAD forum. Note: please wait to open a ticket.

CC @wandererfan, OP opened issue #7076
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw does not work with SVG parameter dominant-baseline

Post by wandererfan »

tobiasfalk wrote: Wed Jun 22, 2022 3:51 pm If you create a template and use the parameter dominant-baseline for setting the text position point in to the middle height for example, the TechDraw viewer does not render it properly. It is trivial if you use it as a SVG parameter or as a Style parameter.
dominant-baseline="middle"
Svg functionality is provided by Qt. Qt supports only the static features of SVG 1.2 Tiny. I don't have a copy of that standard handy, but I would guess that dominant-baseline is not included.
User avatar
tobiasfalk
Posts: 93
Joined: Fri Feb 05, 2021 2:35 pm

Re: TechDraw does not work with SVG parameter dominant-baseline

Post by tobiasfalk »

Thx. for the answer
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: TechDraw does not work with SVG parameter dominant-baseline

Post by Kunda1 »

@wandererfan are there plans for Qt to expand it's support. How would we say implement auxiliary SVG support? (that would cover the gap that Qt doesn't address)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw does not work with SVG parameter dominant-baseline

Post by wandererfan »

Kunda1 wrote: Fri Jun 24, 2022 11:29 am @wandererfan are there plans for Qt to expand it's support. How would we say implement auxiliary SVG support? (that would cover the gap that Qt doesn't address)
The last time I investigated, Qt considered its Svg functionality to be complete and no further enhancements were envisioned. Any further Svg development will be in QtWebEngine which is not a direct replacement in any way.

Replacing QGraphicsSvgItem, QSvgGenerator, QSvgRenderer, etc is a big job.
Post Reply