dillo-browser / dillo

Dillo, a multi-platform graphical web browser
https://dillo-browser.github.io/
GNU General Public License v3.0
575 stars 30 forks source link

Add primitive SVG support #211

Closed rodarima closed 3 months ago

rodarima commented 4 months ago

Adds primitive SVG suport by using a modified nanosvg library that can render Wikipedia equations. Many other features of the SVG standard are not implemented.

The idea is to provide a self-contained small implementation for SVG which can later be optionally replaced by a more complete implementation.

The initial version was taken from the mobilized fork: https://www.toomanyatoms.com/software/mobilized_dillo.html

Increases the floppy occupation from 87% to 89%.

rodarima commented 4 months ago

Cannot render equations that use <symbol>: https://mathworld.wolfram.com/images/equations/FourierTransform/NumberedEquation10.svg

rodarima commented 4 months ago

Added primitive support for symbols too.

rodarima commented 4 months ago

PEC badges in SVG are broken too: https://dillo-browser.github.io/pec/

rodarima commented 4 months ago

PEC badges in SVG are broken too: https://dillo-browser.github.io/pec/

This can be "solved" by converting the SVG to paths, which is enough for now.