equal
deleted
inserted
replaced
2743 if (CopyFit() || (aFormat.iEffects & (TTmCharFormat::EUnderline | TTmCharFormat::EStrikethrough))) |
2743 if (CopyFit() || (aFormat.iEffects & (TTmCharFormat::EUnderline | TTmCharFormat::EStrikethrough))) |
2744 { |
2744 { |
2745 CFont::TMeasureTextInput input; |
2745 CFont::TMeasureTextInput input; |
2746 input.iFlags = CFont::TMeasureTextInput::EFVisualOrder; |
2746 input.iFlags = CFont::TMeasureTextInput::EFVisualOrder; |
2747 input.iStartInputChar = 1; |
2747 input.iStartInputChar = 1; |
2748 input.iEndInputChar = aEnd; |
|
2749 extra_pixels = text_bounds.Width() - aFont->MeasureText(aText, &input); |
2748 extra_pixels = text_bounds.Width() - aFont->MeasureText(aText, &input); |
2750 } |
2749 } |
2751 |
2750 |
2752 // Draw the text. |
2751 // Draw the text. |
2753 |
2752 |