import-svg.h 419 B

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