[core] Shape images in labels at bucket zoom level

This commit is contained in:
Alexander Shalamov
2019-11-19 11:50:55 +02:00
parent 33ba4052b6
commit 614000256b
4 changed files with 9 additions and 2 deletions

View File

@@ -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);
};