1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#pragma once #include <mbgl/text/glyph.hpp> #include <mapbox/shelf-pack.hpp> namespace mbgl { struct GlyphPosition { Rect<uint16_t> rect; GlyphMetrics metrics; }; using GlyphPositions = std::map<GlyphID, GlyphPosition>; class GlyphAtlas { public: AlphaImage image; GlyphPositions positions; }; GlyphAtlas makeGlyphAtlas(const Glyphs&); } // namespace mbgl