This commit is contained in:
jrkb 2023-04-08 17:16:06 +02:00
parent bae9d0453a
commit 1ed1210d29

View file

@ -16,15 +16,6 @@ void MsdfAtlasLayerCombo::setup(const ComboIdentifier & layerIdentifier){
atlasSettings.characters = "";
atlasSettings.maxInterpolationStepSize = 50.0;
//string fontName = "RobotoFlex.ttf";
//string fontPath = "data/fonts/" + fontName;
//string fontPath = "data/celines-fonts/testing2VF.ttf";
string fontPath = "data/celines-fonts/Version-2-var.ttf";
//string fontPath = "data/celines-fonts/Version-2-var.ttf";
//string fontPath = "data/celines-fonts/Version-3-var.ttf";
//string fontPath = "data/celines-fonts/Version-4-var.ttf";
//string fontPath = "data/celines-fonts/Alfarn2.otf";
//string fontPath = "data/celines-fonts/Cottagecore.ttf";
atlas = make_shared <ofxMsdfgen::Atlas>();
msdfShader = make_shared <ofShader>();
@ -34,9 +25,7 @@ void MsdfAtlasLayerCombo::setup(const ComboIdentifier & layerIdentifier){
msdfShader->load("ofxMsdfgen/shaders/mix/GL3/shader");
#endif
cout << "settings scale before " << atlasSettings.scale << endl
<< "minimum scale before " << atlasSettings.minimumScale << endl;
atlas->setup(fontPath, atlasSettings);
atlas->setup(this->identifier.fontPath, atlasSettings);
}
void MsdfAtlasLayerCombo::update(){