sosolimited / ofxSoso

openFrameworks addon with scene graph, animations, enhanced text, and more.
www.sosolimited.com
Other
74 stars 28 forks source link

ofxTextObject — tighten up management of fonts #32

Open ericgunther opened 10 years ago

ericgunther commented 10 years ago

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.