Merge 6c1d59c624 into 30b6f4fd1a
This commit is contained in:
commit
a4720039fb
|
|
@ -213,6 +213,10 @@ const msdfgen::Shape &GlyphGeometry::getShape() const {
|
||||||
return shape;
|
return shape;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GlyphGeometry::setInverseYAxis(bool inverse) {
|
||||||
|
shape.inverseYAxis = inverse;
|
||||||
|
}
|
||||||
|
|
||||||
const msdfgen::Shape::Bounds &GlyphGeometry::getShapeBounds() const {
|
const msdfgen::Shape::Bounds &GlyphGeometry::getShapeBounds() const {
|
||||||
return bounds;
|
return bounds;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ public:
|
||||||
double getGeometryScale() const;
|
double getGeometryScale() const;
|
||||||
/// Returns the glyph's shape
|
/// Returns the glyph's shape
|
||||||
const msdfgen::Shape &getShape() const;
|
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
|
/// Returns the glyph's shape's raw bounds
|
||||||
const msdfgen::Shape::Bounds &getShapeBounds() const;
|
const msdfgen::Shape::Bounds &getShapeBounds() const;
|
||||||
/// Returns the glyph's advance
|
/// Returns the glyph's advance
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue