This commit is contained in:
Michael Böhme 2025-06-06 12:12:59 +02:00 committed by GitHub
commit a4720039fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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