unsigned int numberOfLines;
unsigned int numberOfGlyphs;
float* positions;
- unsigned int ignoreOfGlyphs;
};
bool ElideTest( const ElideData& data )
if( numberOfLines != 0u )
{
const LineRun& lastLine = *( model->GetLines() + numberOfLines - 1u );
- const Length numberOfLastLineGlyphs = data.numberOfGlyphs - lastLine.glyphRun.glyphIndex + data.ignoreOfGlyphs;
+ const Length numberOfLastLineGlyphs = data.numberOfGlyphs - lastLine.glyphRun.glyphIndex;
std::cout << " last line alignment offset : " << lastLine.alignmentOffset << std::endl;
Size textSize04( 80.f, 10.f );
float positions04[] = { 2.f };
- Size textSize05( 180.f, 100.f );
- float positions05[] = { 0.f, 0.f };
-
struct ElideData data[] =
{
{
textSize00,
0u,
0u,
- NULL,
- 0u
+ NULL
},
{
"Latin script",
textSize01,
5u,
42u,
- positions01,
- 0u
+ positions01
},
{
"Hebrew script",
textSize02,
5u,
49u,
- positions02,
- 0u
+ positions02
},
{
"Arabic script",
textSize03,
5u,
79u,
- positions03,
- 0u
+ positions03
},
{
"Small control size, no line fits.",
textSize04,
1u,
1u,
- positions04,
- 0u
- },
- {
- "Include newline character",
- "<font family='TizenSans'>yesterday\n all\n my troubles\n seemed so far\n\n away now it looks</font>",
- textSize05,
- 5u,
- 40,
- positions05,
- 5u
- },
+ positions04
+ }
};
- const unsigned int numberOfTests = 6u;
+ const unsigned int numberOfTests = 5u;
for( unsigned int index = 0u; index < numberOfTests; ++index )
{