better comments
This commit is contained in:
parent
d3359db1e8
commit
b02c7178d1
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ bool ofxMsdfgen::Atlas::generate(){
|
||||||
fontGeometry.loadCharset(font, 1.0, charset);
|
fontGeometry.loadCharset(font, 1.0, charset);
|
||||||
if(glyphs.size() != settings.characters.length()){
|
if(glyphs.size() != settings.characters.length()){
|
||||||
fontGeometry.getGlyphs().empty();
|
fontGeometry.getGlyphs().empty();
|
||||||
fontGeometry.loadCharset(font, 1.0, charset, false);
|
fontGeometry.loadCharset(font,
|
||||||
|
1.0, // fontScale
|
||||||
|
charset, // charset
|
||||||
|
false, // preprocess geometry
|
||||||
|
true); // kerning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies.
|
// Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies.
|
||||||
|
|
Loading…
Reference in a new issue