https://bugs.documentfoundation.org/show_bug.cgi?id=160438
Mike Kaganski <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #10 from Mike Kaganski <[email protected]> --- SwTabPortion should use some technique similar to what is used in SwTextAdjuster for IsOneBlock case (last line of justified paragraph is also justified, even with a single word case). That works through SwLineLayout::InitSpaceAdd, and then the additional inter-character spacing stored in SwLineLayout::m_pLLSpaceAdd is "installed" into SwTextPaintInfo using its SetpSpaceAdd/ResetSpaceIdx (see e.g. SwTextPainter::DrawTextLine). A constant named SPACING_PRECISION_FACTOR should be used in the spacing value calculation somehow. But I have no idea where can we calculate the correct value. A naive approach of adding such code in SwTabPortion::Paint (calculating the resulting string length, and using (Width() - resultingStringWitdh) as a value in a vector passed to SwTextPaintInfo::SetpSpaceAdd) doesn't work for me. Laszlo made quite a large change lately in character spacing code; could you please take a look here? -- You are receiving this mail because: You are the assignee for the bug.
