svg preprocessor to make use kinda work sometimes

This commit is contained in:
Adam D. Ruppe 2024-08-12 12:34:42 -04:00
parent 86154c5c09
commit 03fb5aa82b
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@
+/
module arsd.image;
// might dynamically load this thing: https://developers.google.com/speed/webp/docs/api
public import arsd.color;
public import arsd.png;
public import arsd.jpeg;
@ -36,6 +38,7 @@ MemoryImage readSvg(string filename) {
MemoryImage readSvg(const(ubyte)[] rawData) {
// Load
// NSVG* image = nsvgParseWithPreprocessor(cast(const(char)[]) rawData);
NSVG* image = nsvgParse(cast(const(char)[]) rawData);
if(image is null)