Currently, when setting up fonts, they are newed by the app and then added to the static ofxTextObject::allFonts vector. This should be changed so that the object instantiation is done inside of ofxTextObject.
And then a corresponding delete method should be added for these fonts.
With a giant ALL CAPS warning about the DANGEROUS ramifications of deleting fonts at runtime.
Currently, when setting up fonts, they are newed by the app and then added to the static ofxTextObject::allFonts vector. This should be changed so that the object instantiation is done inside of ofxTextObject.
And then a corresponding delete method should be added for these fonts. With a giant ALL CAPS warning about the DANGEROUS ramifications of deleting fonts at runtime.