|
@@ -122,6 +122,8 @@ Font::TextureSize Font::getNextTextureSize() const
|
|
bool Font::loadVolatile()
|
|
bool Font::loadVolatile()
|
|
{
|
|
{
|
|
textureCacheID++;
|
|
textureCacheID++;
|
|
|
|
+ glyphs.clear();
|
|
|
|
+ images.clear();
|
|
createTexture();
|
|
createTexture();
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -183,6 +185,8 @@ void Font::createTexture()
|
|
|
|
|
|
void Font::unloadVolatile()
|
|
void Font::unloadVolatile()
|
|
{
|
|
{
|
|
|
|
+ glyphs.clear();
|
|
|
|
+ images.clear();
|
|
}
|
|
}
|
|
|
|
|
|
love::font::GlyphData *Font::getRasterizerGlyphData(uint32 glyph)
|
|
love::font::GlyphData *Font::getRasterizerGlyphData(uint32 glyph)
|