aboutsummaryrefslogtreecommitdiff
path: root/src/nanosvg.h
AgeCommit message (Collapse)Author
2025-02-05Fix several typosGevel Tekens
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
2025-01-25Fix OOB read in nsvg__parseColorRGB()bptato
nsvg__isspace uses strchr on a NUL terminated string, so it returns true for the NUL terminator. Other uses of nsvg__isspace account for this by checking for NUL first; I've followed the same pattern here. Fixes: https://github.com/memononen/nanosvg/issues/241 See: https://github.com/memononen/nanosvg/pull/262
2024-08-07Make Dillo C99 standard compliantRodrigo Arias Mallo
Reviewed-by: dogma
2024-07-27Add SVG support for currentColorRodrigo Arias Mallo
The currentColor special value for the fill and stroke attributes allows an image to follow the same foreground color of the surounding text.
2024-07-26Don't report unknown SVG elements for nowRodrigo Arias Mallo
Until we have a way to enable or disable messages, we shouldn't pollute the output log. These may as well be better suited for a bug-like window.
2024-07-26Add support for g and symbol inside defsRodrigo Arias Mallo
These are used by Wolfram equations, example: https://mathworld.wolfram.com/images/equations/FourierTransform/Inline7.svg https://mathworld.wolfram.com/FourierTransform.html
2024-07-26Warn about SVG ignored elementsRodrigo Arias Mallo
2024-07-26Add support for MathJax equations in nanosvgRodrigo Arias Mallo
Allows Dillo to render Wikipedia math equations.
2024-07-26Merge SVG support from mobilized Dillo forkRodrigo Arias Mallo
Uses the nanosvg library to add SVG support. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma