do _n_o_t_ invert y-axis"

This commit is contained in:
jrkb 2023-03-19 12:01:06 +01:00
parent b02c7178d1
commit 39f629312d

View file

@ -70,13 +70,12 @@ bool ofxMsdfgen::Atlas::generate(){
} }
// Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies. // Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies.
for(msdf_atlas::GlyphGeometry & glyph : glyphs){ for(msdf_atlas::GlyphGeometry & glyph : glyphs){
//glyph.getShape().inverseYAxis = true;
//FIXME: we do not need to inverse y axis, something else is wrong //FIXME: we do not need to inverse y axis, something else is wrong
msdfgen::Shape & shape = const_cast <msdfgen::Shape &>(glyph.getShape()); // msdfgen::Shape & shape = const_cast <msdfgen::Shape &>(glyph.getShape());
shape.inverseYAxis = true; // shape.inverseYAxis = true;
glyph.edgeColoring(&msdfgen::edgeColoringInkTrap, glyph.edgeColoring(&msdfgen::edgeColoringInkTrap, // strategy
settings.maxCornerAngle, settings.maxCornerAngle, // angleThreshold
0); 0); // seed
} }
// TightAtlasPacker class computes the layout of the atlas. // TightAtlasPacker class computes the layout of the atlas.
msdf_atlas::TightAtlasPacker packer; msdf_atlas::TightAtlasPacker packer;