Fixes a layout bug with the COMBINING GRAVE ACCENT ' ̀'
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 24 Feb 2020 09:16:37 +0000 (18:16 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 26 Feb 2020 02:52:26 +0000 (11:52 +0900)
commit1effec1a44f2e8c2a777952105267d2c84e72aab
tree922c90ddef169af02273ec6bc51218aa72dbb8d4
parentf106ebc45f192662fb7dcd5bf81109da514cbb5e
Fixes a layout bug with the COMBINING GRAVE ACCENT ' ̀'

* The layout engine failed to calculate correctly the length
  of the line if that character is used in the last position.

if HORIZONTAL_ALIGNMENT is END, this is a problem.

    example)
    Property::Map backgroundMap;
    backgroundMap["color"] = Color::RED;
    backgroundMap["enable"] = true;
    TextLabel testLabel = TextLabel::New( "Àwọn àgbétẹ́lẹ̀");
    testLabel.SetAnchorPoint( AnchorPoint::TOP_LEFT );
    testLabel.SetProperty(TextLabel::Property::POINT_SIZE, 34.f);
    testLabel.SetPosition(100.f, 100.f);
    testLabel.SetSize( 544.f, 100.f);
    testLabel.SetProperty(TextLabel::Property::HORIZONTAL_ALIGNMENT, "END");
    testLabel.SetProperty(Toolkit::DevelTextLabel::Property::BACKGROUND, backgroundMap);
    stage.Add( testLabel );

Change-Id: Ic66fd96cc010eada7187502b9b65e2b408eff2cd
dali-toolkit/internal/text/layouts/layout-engine.cpp