Home » Community » Newbie corner » UPP Examples SVGView error (SVG rendering not correct)
Re: UPP Examples SVGView error [message #61804 is a reply to message #61798] |
Mon, 22 September 2025 07:46   |
zouql
Messages: 17 Registered: December 2020 Location: China
|
Promising Member |
|
|
hello deep:
in the biplane.svg,
1. the <style> in <defs>, but Upp is not process <style> in <defs>.(add it)
2. the <style> .cls-1 is not a valid Id, p.ReadId() can't handle it.(use p.ReadIdh() replace it)
3. the svg path, upp can't process cxy,xy,...(add while(p.Char(',')); in PainterPath.cpp)
4. the svg path, (c,s) or (q, t) they are usually used in combination.
when the front of s is not c, the first control point is the last current point, but now upp not handle it.(add a branch to handle the previous command).
I modified the two files.(SvgParser.cpp, PainterPath.cpp) You can replace it, and will see the correct display. I will submit the code later.
|
|
|
Goto Forum:
Current Time: Mon Sep 22 18:01:05 CEST 2025
Total time taken to generate the page: 0.06105 seconds
|