This commit is contained in:
jrkb 2023-05-25 12:45:26 +02:00
parent 382885948b
commit 7c2f886239

View file

@ -43,7 +43,7 @@ void Atlas::setup(string _fontPath){
if(msdfgen::listFontVariationAxes(_variationAxesAvailable,
ft,
font)){
cout << "found variation axes for " << fontPath << ":" << endl;
//cout << "found variation axes for " << fontPath << ":" << endl;
for(const auto & _axis : _variationAxesAvailable){
FontVariationAxis axis = {
_axis.name,
@ -51,10 +51,10 @@ void Atlas::setup(string _fontPath){
F16DOT16_TO_FLOAT(_axis.maxValue),
F16DOT16_TO_FLOAT(_axis.defaultValue)
};
cout << std::fixed << axis.name << "\n"
<< "\tmin:" << axis.minValue
<< "\tmax:" << axis.maxValue
<< "\t:default:" << axis.defaultValue << endl;
//cout << std::fixed << axis.name << "\n"
//<< "\tmin:" << axis.minValue
//<< "\tmax:" << axis.maxValue
//<< "\t:default:" << axis.defaultValue << endl;
variationAxesAvailable.push_back(axis);
addVariations({
{axis.name, axis.minValue},
@ -384,6 +384,7 @@ string Atlas::getAtlasPath(){
atlasPath += ve.name + "_" + ofToString(ve.value) + "_";
}
atlasPath += ".png";
cout << "Atlas::getAtlasPath() - atlas path: " << atlasPath << endl;
return atlasPath;
}
}