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