Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaolian Qin committed Aug 26, 2024
1 parent cd8f4b9 commit 885f57c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/text/shaping.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ TEST(Shaping, ZWSP) {
}

void setupShapedText(Shaping& shapedText, float textSize) {
float fontScale = 4;
auto glyph = PositionedGlyph(32,
0.0f,
0.0f,
Expand All @@ -126,13 +125,13 @@ void testApplyTextFit(const mapbox::Bin& rectangle,
const std::optional<style::TextFit> textFitWidth,
const std::optional<style::TextFit> textFitHeight,
const Shaping& shapedText,
float textSize,
float fontScale,
float expectedRight,
float expectedBottom) {
ImagePosition image = {rectangle,
style::Image::Impl("test",
PremultipliedImage({rectangle.w, rectangle.h}),
PremultipliedImage({static_cast<uint32_t>(rectangle.w),
static_cast<uint32_t>(rectangle.h)}),
1.0f,
false,
{},
Expand Down Expand Up @@ -177,7 +176,6 @@ TEST(Shaping, applyTextFit) {
std::nullopt,
std::nullopt,
shapedText,
textSize,
fontScale,
expectedImageSize,
expectedImageSize);
Expand All @@ -191,7 +189,6 @@ TEST(Shaping, applyTextFit) {
style::TextFit::stretchOrShrink,
style::TextFit::stretchOrShrink,
shapedText,
textSize,
fontScale,
expectedImageSize,
expectedImageSize);
Expand All @@ -205,8 +202,7 @@ TEST(Shaping, applyTextFit) {
horizontalContent,
style::TextFit::stretchOnly,
style::TextFit::proportional,
shapedText,
textSize,
shapedText,
fontScale,
expectedImageSize * 9,
expectedImageSize);
Expand All @@ -229,7 +225,6 @@ TEST(Shaping, applyTextFit) {
style::TextFit::proportional,
style::TextFit::stretchOnly,
shapedText,
textSize,
fontScale,
expectedImageSize,
expectedImageSize * 9);
Expand Down

0 comments on commit 885f57c

Please sign in to comment.