const CharacterIndex lastCharacterPlusOne = startIndex + numberOfCharacters;
alignmentOffset = MAX_FLOAT;
-
- const bool firstLineDirection = matchSystemLanguageDirection == true ? lines.Begin()->direction : false;
-
// Traverse all lines and align the glyphs.
for( Vector<LineRun>::Iterator it = lines.Begin(), endIt = lines.End();
it != endIt;
horizontalAlignment,
line,
layoutDirection,
- matchSystemLanguageDirection,
- firstLineDirection );
+ matchSystemLanguageDirection );
// Updates the alignment offset.
alignmentOffset = std::min( alignmentOffset, line.alignmentOffset );
HorizontalAlignment::Type horizontalAlignment,
LineRun& line,
Dali::LayoutDirection::Type layoutDirection,
- bool matchSystemLanguageDirection,
- const bool firstLineDirection )
+ bool matchSystemLanguageDirection )
{
line.alignmentOffset = 0.f;
bool isRTL = RTL == line.direction;
float lineLength = line.width;
HorizontalAlignment::Type alignment = horizontalAlignment;
- // match align for first line direction and system language direction
+ // match align for system language direction
if( matchSystemLanguageDirection )
{
- isRTL = ( ( RTL == firstLineDirection ) && ( layoutDirection == LayoutDirection::RIGHT_TO_LEFT ) );
+ isRTL = layoutDirection == LayoutDirection::RIGHT_TO_LEFT;
}
// Swap the alignment type if the line is right to left.