-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text object is missing several important fields. #75
Comments
Thank you for your issue 🙂 |
@Domre : Okay, so this should be okay now. Summary from the related test showcasing the new properties: tson::Text text = map->getLayer("Object Layer")->firstObj("text")->getText();
REQUIRE(text.bold);
REQUIRE(text.fontFamily == "Courier");
REQUIRE(text.horizontalAlignment == tson::TextAlignment::Center);
REQUIRE(text.italic);
REQUIRE(!text.kerning);
REQUIRE(text.pixelSize == 20);
REQUIRE(text.strikeout);
REQUIRE(text.text == "Tileson - Demo Map");
REQUIRE(text.underline);
REQUIRE(text.verticalAlignment == tson::TextAlignment::Bottom);
REQUIRE(text.wrap);
tson::Colori color = text.color;
REQUIRE(color.r == 254);
REQUIRE(color.g == 254);
REQUIRE(color.b == 254);
REQUIRE(color.a == 255); |
Works perfect. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following fields are missing from the text object.
The text was updated successfully, but these errors were encountered: