-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot parse some SVG's tile by tile #55
Comments
|
@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. |
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?
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.
I will try this. |
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
The text was updated successfully, but these errors were encountered: