using a boolean type is not necessary, map::erase is safe to pointer FontAtlas*
use nullptr