@@ -24,6 +24,11 @@ namespace oxygine
_glyphs.insert(gl);
}
+ void Font::clear()
+ {
+ _glyphs.clear();
+ }
+
bool glyphFindPred(const glyph& g, int code)
{
return g.ch < code;
@@ -47,6 +47,8 @@ namespace oxygine
void addGlyph(const glyph& g);
void sortGlyphs() {}
+ void clear();
void setScale(float scale) { _scale = scale; }
void setBaselineDistance(int d) { _baselineDistance = d; }
@@ -113,6 +113,7 @@ namespace oxygine
void MultiAtlas::clean()
_free.clear();
+ _bounds = Rect(0, 0, 0, 0);
void MultiAtlas::init(int skipSize)