summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_pbf.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-05-27 16:16:07 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-05-28 09:33:08 +0300
commit48875d8d6ccabd344d95be15f8537b0c8c8f7f18 (patch)
tree2cced9e904eba54801c07f499043a54ce72f1f47 /src/mbgl/text/glyph_pbf.hpp
parent4819379020f88d2cf34774dfb6aca0ca16aa53ca (diff)
downloadqtlocation-mapboxgl-48875d8d6ccabd344d95be15f8537b0c8c8f7f18.tar.gz
Notify glyph parsing errors
Emit a signal when the glyphs are not parsed correctly.
Diffstat (limited to 'src/mbgl/text/glyph_pbf.hpp')
-rw-r--r--src/mbgl/text/glyph_pbf.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/text/glyph_pbf.hpp b/src/mbgl/text/glyph_pbf.hpp
index cb36dde03e..bb6fa83ae6 100644
--- a/src/mbgl/text/glyph_pbf.hpp
+++ b/src/mbgl/text/glyph_pbf.hpp
@@ -29,6 +29,10 @@ public:
void parse(FontStack &stack);
bool isParsed() const;
+ std::string getURL() const {
+ return url;
+ }
+
private:
GlyphPBF(const GlyphPBF &) = delete;
GlyphPBF(GlyphPBF &&) = delete;
@@ -36,6 +40,7 @@ private:
GlyphPBF &operator=(GlyphPBF &&) = delete;
std::string data;
+ std::string url;
std::atomic<bool> parsed;
Environment& env;