diff --git a/msdf-atlas-gen/GlyphGeometry.cpp b/msdf-atlas-gen/GlyphGeometry.cpp index 1e30df7..03e3aed 100644 --- a/msdf-atlas-gen/GlyphGeometry.cpp +++ b/msdf-atlas-gen/GlyphGeometry.cpp @@ -213,6 +213,10 @@ const msdfgen::Shape &GlyphGeometry::getShape() const { return shape; } +void GlyphGeometry::setInverseYAxis(bool inverse) { + shape.inverseYAxis = inverse; +} + const msdfgen::Shape::Bounds &GlyphGeometry::getShapeBounds() const { return bounds; } diff --git a/msdf-atlas-gen/GlyphGeometry.h b/msdf-atlas-gen/GlyphGeometry.h index 6e0c13a..600450b 100644 --- a/msdf-atlas-gen/GlyphGeometry.h +++ b/msdf-atlas-gen/GlyphGeometry.h @@ -52,6 +52,8 @@ public: double getGeometryScale() const; /// Returns the glyph's shape const msdfgen::Shape &getShape() const; + /// Sets the glyph's flag for inverting the y-axis + void setInverseYAxis(bool inverse); /// Returns the glyph's shape's raw bounds const msdfgen::Shape::Bounds &getShapeBounds() const; /// Returns the glyph's advance