ofxMsdfgen/libs/msdf-atlas-gen/include/msdfgen/ext/import-svg.h

16 lines
419 B
C
Raw Normal View History

#pragma once
#include <cstdlib>
#include "../core/Shape.h"
namespace msdfgen {
/// Builds a shape from an SVG path string
bool buildShapeFromSvgPath(Shape &shape, const char *pathDef, double endpointSnapRange = 0);
/// Reads the first path found in the specified SVG file and stores it as a Shape in output.
bool loadSvgShape(Shape &output, const char *filename, int pathIndex = 0, Vector2 *dimensions = NULL);
}