summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-05-22 12:30:18 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-22 12:30:18 +0200
commit3cf76ce9078a2cb181748fbf79741fb75a1f6b65 (patch)
tree2331685339615fbbd38ec054e5121b49e364d7a4 /src/mbgl/text/glyph.hpp
parent8678d5034a0e20a60d4de3964fc672c487cbf020 (diff)
downloadqtlocation-mapboxgl-3cf76ce9078a2cb181748fbf79741fb75a1f6b65.tar.gz
split up glyph_store.cpp into multiple files
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r--src/mbgl/text/glyph.hpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp
index b0af261cc6..0677bcff30 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 {
@@ -55,6 +56,18 @@ public:
};
typedef std::vector<PositionedGlyph> Shaping;
-}
+
+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