From 39f629312dc206af09dcbea99fea3cca3c8a8f21 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sun, 19 Mar 2023 12:01:06 +0100 Subject: [PATCH] do _n_o_t_ invert y-axis" --- src/Atlas.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Atlas.cpp b/src/Atlas.cpp index 83aea22..53c67cf 100644 --- a/src/Atlas.cpp +++ b/src/Atlas.cpp @@ -70,13 +70,12 @@ bool ofxMsdfgen::Atlas::generate(){ } // Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies. for(msdf_atlas::GlyphGeometry & glyph : glyphs){ - //glyph.getShape().inverseYAxis = true; //FIXME: we do not need to inverse y axis, something else is wrong - msdfgen::Shape & shape = const_cast (glyph.getShape()); - shape.inverseYAxis = true; - glyph.edgeColoring(&msdfgen::edgeColoringInkTrap, - settings.maxCornerAngle, - 0); + // msdfgen::Shape & shape = const_cast (glyph.getShape()); + // shape.inverseYAxis = true; + glyph.edgeColoring(&msdfgen::edgeColoringInkTrap, // strategy + settings.maxCornerAngle, // angleThreshold + 0); // seed } // TightAtlasPacker class computes the layout of the atlas. msdf_atlas::TightAtlasPacker packer;