Comments (4)
Hi @carloBarazzetta, thank you so much for reporting the issue!
I tested a lot of SVGs and the problem I encountered was just the lack of built-in css (style element) support. However, the ones you sent have one more problem that I just discovered, the doctype!
Everything works when removing the line:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_svg "http://www.w3.org/2000/svg">
<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
It's clearly a bug. I will report to the official skia channel.
A good site to discover these issues is https://jakearchibald.github.io/svgomg/. With it it is possible to adjust several types of different configurations for the svg file and go testing.
from skia4delphi.
But let's investigate further to see what can be done.
from skia4delphi.
Thank you very much!
from skia4delphi.
Entity processing has been disabled to inhibit internal entity expansion for security reasons.
You can get more information: https://www.cve.org/CVERecord?id=CVE-2013-0340
You can see on Skia source src/xml/SkXMLParser.cpp
:
// Disable entity processing, to inhibit internal entity expansion. See expat CVE-2013-0340.
XML_SetEntityDeclHandler(ctx.fXMLParser, entity_decl_handler);
Whenever there is an entity parse is stopped.
We will close the issue but we will document and keep an eye out for any changes.
@carloBarazzetta thank you so much for reporting! We will document and add instructions and description about the case!
from skia4delphi.
Related Issues (20)
- Please make TSkGraphic and TSkSvgGraphic accessible HOT 4
- What is technical art behind “Skia Enabled” old app? HOT 3
- Multiline Text in TText: problem when AutoSize is True and WordWrap is False HOT 3
- TSkPath.Contains() does not work properly in some situations HOT 1
- Enabling Skia causes other controls to redraw abnormally HOT 2
- MacOS: Exception in libsk4d.dylib in skia::textlayout::TextWrapper::lookAhead
- TSkSVG not displaying SVG file properly HOT 4
- In Delphi 12 IDE crashes when you drag and drop TSkAnimatedPaintbox to Form HOT 1
- ACCESS Violation after adding SKIA to Uses clause HOT 3
- Text extent fails under MacOS(!) HOT 3
- SKIA for Android: GPU SkImage Rendering Failure on TGLCanvas vs. Vulkan HOT 7
- Android Crash on Delphi 11.3 for Transferred Bricks Game Demo Project HOT 2
- Universal MAC Dylib
- ISkRuntimeEffect changes from 3.4.0 to 6.0.0 HOT 3
- Request for SkFontMg.matchFamilyStyleCharacter equivalent
- Request for SkTextBlob.bounds eqivalent
- How to enable GPU in VCL? HOT 1
- Getting an indexed color from TSkPaint.Shader.MakeGradientLinear HOT 1
- Crashes Delphi 11.1, skia versão 6.0 HOT 2
- error: program is too large HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skia4delphi.