I think it is not a good idea to use global variables.
It is better to be a class member variable of FontAtlas.