Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » UPP Examples SVGView error (SVG rendering not correct)
UPP Examples SVGView error [message #61798] Sat, 20 September 2025 15:40 Go to next message
deep is currently offline  deep
Messages: 276
Registered: July 2011
Location: Bangalore
Experienced Member
I am getting wrong display for the enclosed SVG file when using Examples/SVGView

index.php?t=getfile&id=7111&private=0

Enclosing SVG file in next message.


Warm Regards

Deepak
Re: UPP Examples SVGView error [message #61799 is a reply to message #61798] Sat, 20 September 2025 15:44 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 276
Registered: July 2011
Location: Bangalore
Experienced Member
Expected Image file

index.php?t=getfile&id=7112&private=0
  • Attachment: biplane.png
    (Size: 85.86KB, Downloaded 30 times)


Warm Regards

Deepak
Re: UPP Examples SVGView error [message #61800 is a reply to message #61798] Sat, 20 September 2025 15:48 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 276
Registered: July 2011
Location: Bangalore
Experienced Member
SVG File attached.

This file is not rendered correctly with Examples/SVGView.
  • Attachment: biplane.svg
    (Size: 14.17KB, Downloaded 6 times)


Warm Regards

Deepak
Re: UPP Examples SVGView error [message #61804 is a reply to message #61798] Mon, 22 September 2025 07:46 Go to previous messageGo to next message
zouql is currently offline  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.


Re: UPP Examples SVGView error [message #61805 is a reply to message #61804] Mon, 22 September 2025 07:48 Go to previous message
zouql is currently offline  zouql
Messages: 17
Registered: December 2020
Location: China
Promising Member
index.php?t=getfile&id=7117&private=0
  • Attachment: biplane.png
    (Size: 215.76KB, Downloaded 13 times)
Previous Topic: no variables in debug mode
Next Topic: New system of feature requests on our forums- please read and use!
Goto Forum:
  


Current Time: Mon Sep 22 12:07:10 CEST 2025

Total time taken to generate the page: 0.05409 seconds