Apache OpenOffice (AOO) Bugzilla – Issue 13779
anti-aliasing with full justifiction screen layout bug
Last modified: 2003-05-20 10:46:31 UTC
Hi, It seems if I install stock ttf fonts (like Times New Roman - direct from the HP LaserJet official disk), and I make sure that text is full "justified" (both right and left and not ragged right and that anti-aliasing is enabled, I can literally make many many leading letters of words appear to become disconnected from the remaining letters of the word, but only under OOo 1.1 series (1.1 Beta and 644m10, etc) builds. The problem only happens with BOTH full justification and anti-aliasing. It seems to occur when a "short" sentence needs to be spread out a lot to become right justified and somehow the distance between the letters in words are increased (along with the increased whitespace between words) resulting in the lead letter of a word becoming "detached" from the word itself (way far out in front). I have exchanged e-mails with Herbert about this and I have sent to him a small sample document and the fonts I have used so that he might recreate this issue. BTW, this issue was confirmed by another user on dev@porting this morning. I have included his confirmation below: ---snip--- And here was I thinking it was just a font kerning issue related to the particular font I was using. I can confirm this on my Linux Beta 1.1 install. As you state, it only occurs with justified text. I see this with the Helvetica font, for instance, and the font is fully anti-aliased. Alex. ---snip--- The bug in question only happens with 644/1.1 builds (it works fine in OOO_STABLE_1 based builds. In addition, when printed the problem does not appear in the printed output. The problem only appears on the screen. I have tried to track it down using hints from Hamburg but the pDXAry values look fine to me (but I must admit I am not sure how to interpret the debug output yet). If someone can point me to the actual code that does the justification part, I coould try to help track down this issue further. Thanks, Kevin
cp->hdu: please have a look at it
Created attachment 5936 [details] jpeg screen snapshot showing problem (see "estimate" and "average")
Created attachment 5937 [details] small two line test case doucment (play with spacing in first line)
Hi, I have attached a screen layout showing the problem (the same one I sent to Herbert). I have also attached a small text case (two line) Writer document. To see the problem simply load this file and dynamically add and remove letters and words and watch how the justification changes and how the leading character of some words begins to become detached. Hope this helps, Kevin ps. I would be happy to run any special tests or add debug output for you if it would help. Thanks, Kevin
Seems to have slipped in when moving Sallayout::AdjustLayout() before glyph fallback step is completed to avoid crash on Win32's ScriptApplyLogicalWidth. Fix in progress.
In vcl/source/gdi/sallayout.cxx Sallayout::GetNextGlyphs() the test at // stop when x-position unexpected was off by one. Fix is in revision 1.41.6.1. Thank you Kevin for catching this serious bug.
to US for verification in BETA2REGRESSION03
Second try to reassign.
US: fix verified.
changing Status to verified.
Verified in OOo1.1 Beta2.