summaryrefslogtreecommitdiff
path: root/test/text/shaping.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/text/shaping.test.cpp')
-rw-r--r--test/text/shaping.test.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/text/shaping.test.cpp b/test/text/shaping.test.cpp
index b22cd7da36..c4d2ef7fc4 100644
--- a/test/text/shaping.test.cpp
+++ b/test/text/shaping.test.cpp
@@ -26,17 +26,21 @@ TEST(Shaping, ZWSP) {
{ FontStackHasher()(fontStack), {{u'中', std::move(immutableGlyph)}} }
};
- const auto testGetShaping = [&] (const TaggedString& string, unsigned maxWidthInChars) {
+ ImagePositions imagePositions;
+
+ const auto testGetShaping = [&](const TaggedString& string, unsigned maxWidthInChars) {
return getShaping(string,
maxWidthInChars * ONE_EM,
- ONE_EM, // lineHeight
+ ONE_EM, // lineHeight
style::SymbolAnchorType::Center,
style::TextJustifyType::Center,
- 0, // spacing
+ 0, // spacing
{{0.0f, 0.0f}}, // translate
WritingModeType::Horizontal,
bidi,
glyphs,
+ imagePositions,
+ 16.0,
/*allowVerticalPlacement*/ false);
};