diff options
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r-- | src/mbgl/text/glyph.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp index 03016f0fbf..be7c9befd5 100644 --- a/src/mbgl/text/glyph.hpp +++ b/src/mbgl/text/glyph.hpp @@ -5,6 +5,7 @@ #include <cstdint> #include <vector> +#include <string> #include <map> namespace mbgl { @@ -68,6 +69,17 @@ class Shaping { operator bool() const { return positionedGlyphs.size(); } }; -} +class SDFGlyph { +public: + uint32_t id = 0; + + // A signed distance field of the glyph with a border of 3 pixels. + std::string bitmap; + + // Glyph metrics + GlyphMetrics metrics; +}; + +} // end namespace mbgl #endif |