Closed erentknn closed 2 years ago
short
overflow in plutovg 🤯🤯🤯
@erentknn Did you have access to cairo library?
@sammycage No, I never used it before.
@erentknn Are you using Linux or Windows?
@sammycage Windows.
OK.. I will try to replace plutovg with Blend2D. It is very fast compare to other renderer.
Short overflow in plutovg 🤯🤯🤯
BTW, isn't it easier to fix the short overflow rather than replacing the all library?
The problem is from freetype code inside PlutoVG... This makes it more difficult for me to fix.
Let me explain the problem to you.
FT_Outline can only handle maximum of 32,767 points. But the svg file you provided has only just one path element that contains 175,537 points.
Wow. That's a lot of points. Thank you for the explanation. Is there anything I can do for help?
Is the SVG file manually generated?
Is there anything I can do for help?
Try decrease the number of points by increasing the number of path elements with less points.
Yes, I am creating SVG from the contours found earlier.
Try decrease the number of points by increasing the number of path elements with less points.
I will try this.
Yes, I am creating SVG from the contours found earlier.
If you need my help, please let me know.
I split the path into multiple paths but result was not the same as before on both SVG's. Probably because of contours that are on multiple tiles breaks something. So I guess I have to wait your fix on issue 🤷♂️
This is the blend2d binding lunasvg-blend2d.zip
I will fix this issue later
I have two SVG's. One is smaller (12k x 7k) other one is bigger (28k x 32k) I can parse the smaller one tile by tile with no problem. But with other one I get Access Violation error. I triple checked the code and cannot find any problem. Here is a sample code to reproduce it:
SVG and tileList can be found here: broken.zip And other SVG can be found here (One that works correctly. Note: First few iterations might be blank image.): notbroken.zip