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.
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 <msdfgen::Shape &>(glyph.getShape());
shape.inverseYAxis = true;
glyph.edgeColoring(&msdfgen::edgeColoringInkTrap,
settings.maxCornerAngle,
0);
// msdfgen::Shape & shape = const_cast <msdfgen::Shape &>(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;