diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-19 11:50:55 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-02 17:11:49 +0200 |
commit | 614000256b709ff9d566740534f68c4cb795e0f2 (patch) | |
tree | 59271e9aa68699dd3ecc866f8b47983bf7394cbc /test/text | |
parent | 33ba4052b67436b09f1dff21991673f6ea37275e (diff) | |
download | qtlocation-mapboxgl-614000256b709ff9d566740534f68c4cb795e0f2.tar.gz |
[core] Shape images in labels at bucket zoom level
Diffstat (limited to 'test/text')
-rw-r--r-- | test/text/shaping.test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/text/shaping.test.cpp b/test/text/shaping.test.cpp index 53f8505393..d86bf30eb9 100644 --- a/test/text/shaping.test.cpp +++ b/test/text/shaping.test.cpp @@ -25,6 +25,8 @@ TEST(Shaping, ZWSP) { auto immutableGlyph = Immutable<Glyph>(makeMutable<Glyph>(std::move(glyph))); const std::vector<std::string> fontStack{{"font-stack"}}; const SectionOptions sectionOptions(1.0f, fontStack); + const float layoutTextSize = 16.0f; + const float layoutTextSizeAtBucketZoomLevel = 16.0f; GlyphMap glyphs = { { FontStackHasher()(fontStack), {{u'中', std::move(immutableGlyph)}} } }; @@ -44,7 +46,8 @@ TEST(Shaping, ZWSP) { glyphs, glyphPositions, imagePositions, - 16.0, + layoutTextSize, + layoutTextSizeAtBucketZoomLevel, /*allowVerticalPlacement*/ false); }; |