Port texture_atlas in freetype-gl to C++, need unit test