diff --git a/core/MSDFErrorCorrection.cpp b/core/MSDFErrorCorrection.cpp index 7639dc6..e4ceb39 100644 --- a/core/MSDFErrorCorrection.cpp +++ b/core/MSDFErrorCorrection.cpp @@ -89,6 +89,8 @@ public: bool protectedFlag; inline ShapeDistanceChecker(const BitmapConstRef &sdf, const Shape &shape, const Projection &projection, DistanceMapping distanceMapping, double minImproveRatio) : distanceFinder(shape), sdf(sdf), distanceMapping(distanceMapping), minImproveRatio(minImproveRatio) { texelSize = projection.unprojectVector(Vector2(1)); + if (shape.inverseYAxis) + texelSize.y = -texelSize.y; } inline ArtifactClassifier classifier(const Vector2 &direction, double span) { return ArtifactClassifier(this, direction, span);