Fixed bug about cache of EllipsisGlyph 12/210412/2
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 19 Jul 2019 02:10:18 +0000 (11:10 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Fri, 19 Jul 2019 02:13:31 +0000 (02:13 +0000)
commit9e45bb053345c81522d7e745cc44bcd2c694b3f1
treeb0467bfa96bd03fdd60ea8de3960c1f74b7c471e
parent083dbe755f610722f5bfa15351e2c7ec4e41b87f
Fixed bug about cache of EllipsisGlyph

Checking for cache usage is wrong.

For example,
when you create two TextLabels with PointSize 25, 50, ellipsis is created in one size.
ellipsis also changes according to the font size.

    TextLabel ellipsisLabel  = TextLabel::New( "Hello World"  );
    ellipsisLabel.SetSize( 170.f, 120.f );
    ellipsisLabel.SetProperty( TextLabel::Property::POINT_SIZE, 25.f );
    ellipsisLabel.SetProperty( TextLabel::Property::ELLIPSIS, true );
    ellipsisLabel.SetPosition( 100.f, 150.f );
    ellipsisLabel.SetParentOrigin( ParentOrigin::TOP_LEFT );
    ellipsisLabel.SetAnchorPoint( AnchorPoint::TOP_LEFT );
    stage.Add( ellipsisLabel );

    TextLabel ellipsisLabel2  = TextLabel::New( "Hello World"  );
    ellipsisLabel2.SetSize( 170.f, 120.f );
    ellipsisLabel2.SetProperty( TextLabel::Property::POINT_SIZE, 50.f );
    ellipsisLabel2.SetProperty( TextLabel::Property::ELLIPSIS, true );
    ellipsisLabel2.SetPosition( 100.f, 250.f );
    ellipsisLabel2.SetParentOrigin( ParentOrigin::TOP_LEFT );
    ellipsisLabel2.SetAnchorPoint( AnchorPoint::TOP_LEFT );
    stage.Add( ellipsisLabel2 );

Change-Id: I66426a59b5cfdd68d09b9c6f862606a38d1a1986
dali/internal/text/text-abstraction/font-client-plugin-impl.cpp