Home » Developing U++ » U++ Developers corner » UPP Examples SVGView error (SVG rendering not correct)
| Re: UPP Examples SVGView error [message #61809 is a reply to message #61804] |
Tue, 23 September 2025 16:45   |
 |
mirek
Messages: 14271 Registered: November 2005
|
Ultimate Member |
|
|
zouql wrote on Mon, 22 September 2025 07:46hello 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.
Thank you, fix adopted with small changes.
|
|
|
|
 |
|
UPP Examples SVGView error
By: deep on Sat, 20 September 2025 15:40
|
 |
|
Re: UPP Examples SVGView error
By: deep on Sat, 20 September 2025 15:44
|
 |
|
Re: UPP Examples SVGView error
By: deep on Sat, 20 September 2025 15:48
|
 |
|
Re: UPP Examples SVGView error
By: zouql on Mon, 22 September 2025 07:46
|
 |
|
Re: UPP Examples SVGView error
By: zouql on Mon, 22 September 2025 07:48
|
 |
|
Re: UPP Examples SVGView error
By: mirek on Tue, 23 September 2025 16:45
|
 |
|
Re: UPP Examples SVGView error
By: deep on Tue, 23 September 2025 10:47
|
 |
|
Re: UPP Examples SVGView error
By: zouql on Wed, 24 September 2025 02:39
|
 |
|
Re: UPP Examples SVGView error
By: mirek on Wed, 24 September 2025 09:09
|
 |
|
Re: UPP Examples SVGView error
By: mirek on Wed, 24 September 2025 09:57
|
 |
|
Re: UPP Examples SVGView error
By: zouql on Wed, 24 September 2025 09:25
|
 |
|
Re: UPP Examples SVGView error
By: mirek on Wed, 24 September 2025 09:39
|
Goto Forum:
Current Time: Wed Nov 05 03:35:31 CET 2025
Total time taken to generate the page: 0.11869 seconds
|