If I do this in my plugin somewhere, say, the the constructor of some class…
tekoBoldFont = Font(Typeface::createSystemTypefaceFor(BinaryData::TekBold_ttf, BinaryData::TekoBold_ttfSize));
…doesn’t that mean every instance of my class will load the same font taking up more and more unecessary memory for this font? I will have hundreds of images and a handful of fonts for my plugin. Doesn’t that mean every plugin instance will use up more memory for the same images and fonts?
So I was trying to create static Image / static Font so that every plugin instance refers to the same object, I also tried extern keyword, this all creates runtime errors.