From 614000256b709ff9d566740534f68c4cb795e0f2 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Tue, 19 Nov 2019 11:50:55 +0200 Subject: [core] Shape images in labels at bucket zoom level --- src/mbgl/text/shaping.cpp | 3 ++- src/mbgl/text/shaping.hpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mbgl/text') diff --git a/src/mbgl/text/shaping.cpp b/src/mbgl/text/shaping.cpp index b977112d1f..fb1aa04346 100644 --- a/src/mbgl/text/shaping.cpp +++ b/src/mbgl/text/shaping.cpp @@ -532,6 +532,7 @@ const Shaping getShaping(const TaggedString& formattedString, const GlyphPositions& glyphPositions, const ImagePositions& imagePositions, float layoutTextSize, + float layoutTextSizeAtBucketZoomLevel, bool allowVerticalPlacement) { assert(layoutTextSize); std::vector reorderedLines; @@ -561,7 +562,7 @@ const Shaping getShaping(const TaggedString& formattedString, glyphMap, glyphPositions, imagePositions, - layoutTextSize, + layoutTextSizeAtBucketZoomLevel, allowVerticalPlacement); return shaping; diff --git a/src/mbgl/text/shaping.hpp b/src/mbgl/text/shaping.hpp index c170642e82..1f62f38521 100644 --- a/src/mbgl/text/shaping.hpp +++ b/src/mbgl/text/shaping.hpp @@ -73,6 +73,7 @@ const Shaping getShaping(const TaggedString& string, const GlyphPositions& glyphPositions, const ImagePositions& imagePositions, float layoutTextSize, + float layoutTextSizeAtBucketZoomLevel, bool allowVerticalPlacement); } // namespace mbgl -- cgit v1.2.1