fontDescriptionRuns.PushBack( fontDescriptionRun05 );
fontDescriptionRuns.PushBack( fontDescriptionRun06 );
- float positions[] = { -4.f, 0.f, 0.f, 0.f, 0.f, 0.f };
+ float positions[] = { 0.f, 0.f, 0.f, 0.f, 0.f, 0.f };
Size textArea( 100.f, 300.f );
AlignData data =
bool matchSystemLanguageDirection )
{
line.alignmentOffset = 0.f;
- bool isRTL = RTL == line.direction;
+ bool isLineRTL = RTL == line.direction;
+ bool isRTL = isLineRTL;
float lineLength = line.width;
HorizontalAlignment::Type alignment = horizontalAlignment;
{
line.alignmentOffset = 0.f;
- if( isRTL )
+ if( isLineRTL )
{
// 'Remove' the white spaces at the end of the line (which are at the beginning in visual order)
line.alignmentOffset -= line.extraLength;
{
line.alignmentOffset = 0.5f * ( boxWidth - lineLength );
- if( isRTL )
+ if( isLineRTL )
{
line.alignmentOffset -= line.extraLength;
}
}
case HorizontalAlignment::END:
{
- if( isRTL )
+ if( isLineRTL )
{
lineLength += line.extraLength;
}