| 183 | |
| 184 | |
| 185 | void GlyphCache::Clear() |
| 186 | // ---------------------------------------------------------------------------- |
| 187 | // Clear the glyph cache entirely |
| 188 | // ---------------------------------------------------------------------------- |
| 189 | { |
| 190 | for (FontMap::iterator it = cache.begin(); it != cache.end(); it++) |
| 191 | delete (*it).second; |
| 192 | cache.clear(); |
| 193 | packer.Clear(); |
| 194 | image.fill(0); |
| 195 | lastFont = NULL; |
| 196 | } |
| 197 | |
| 198 | |
| 199 | void GlyphCache::CheckActiveLayout(Layout *where) |