#pragma once #include #include #include #include #include namespace mbgl { class SDFGlyph { public: // We're using this value throughout the Mapbox GL ecosystem. If this is different, the glyphs // also need to be reencoded. static constexpr const uint8_t borderSize = 3; GlyphID id = 0; // A signed distance field of the glyph with a border (see above). AlphaImage bitmap; // Glyph metrics GlyphMetrics metrics; }; std::vector parseGlyphPBF(const GlyphRange&, const std::string& data); } // namespace mbgl