fontDescriptionRuns.PushBack( fontDescriptionRun05 );
fontDescriptionRuns.PushBack( fontDescriptionRun06 );
- float positions[] = { 0.f, 0.f, 0.f, 0.f, 0.f, 0.f };
+ float positions[] = { -4.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 isLineRTL = RTL == line.direction;
- bool isRTL = isLineRTL;
+ bool isRTL = RTL == line.direction;
float lineLength = line.width;
HorizontalAlignment::Type alignment = horizontalAlignment;
{
line.alignmentOffset = 0.f;
- if( isLineRTL )
+ if( isRTL )
{
// '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( isLineRTL )
+ if( isRTL )
{
line.alignmentOffset -= line.extraLength;
}
}
case HorizontalAlignment::END:
{
- if( isLineRTL )
+ if( isRTL )
{
lineLength += line.extraLength;
}