summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_set.hpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-02-08 14:14:30 -0800
committerChris Loer <chris.loer@gmail.com>2017-02-08 14:14:30 -0800
commitb67ddc03f4e20c9f499c016e6ac858c196191196 (patch)
tree28ae6706f5227d6e4f9f23c10dc587cb7ddc4b77 /src/mbgl/text/glyph_set.hpp
parent3212e543b79c0a0d2836e32326a66ca830101777 (diff)
downloadqtlocation-mapboxgl-b67ddc03f4e20c9f499c016e6ac858c196191196.tar.gz
First stab at using Harfbuzz+Freetype locally to render labels.
Diffstat (limited to 'src/mbgl/text/glyph_set.hpp')
-rw-r--r--src/mbgl/text/glyph_set.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mbgl/text/glyph_set.hpp b/src/mbgl/text/glyph_set.hpp
index 3037cefca0..2f777addcb 100644
--- a/src/mbgl/text/glyph_set.hpp
+++ b/src/mbgl/text/glyph_set.hpp
@@ -5,6 +5,8 @@
#include <mbgl/util/geometry.hpp>
namespace mbgl {
+
+class FontStore;
class GlyphSet {
public:
@@ -18,7 +20,8 @@ public:
float justify,
float spacing,
const Point<float>& translate,
- BiDi& bidi) const;
+ BiDi& bidi,
+ const FontStore& fontStore) const;
private:
float determineAverageLineWidth(const std::u16string& logicalInput,
@@ -35,7 +38,8 @@ private:
float horizontalAlign,
float verticalAlign,
float justify,
- const Point<float>& translate) const;
+ const Point<float>& translate,
+ const FontStore& fontStore) const;
std::map<uint32_t, SDFGlyph> sdfs;
};