added GlyphGeometry::setInverseYAxis(bool)

This commit is contained in:
Michael Böhme 2025-06-06 12:06:32 +02:00
parent 30b6f4fd1a
commit 6c1d59c624
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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