Issue 108684 - Better text justification
Summary: Better text justification
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOO320m11
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 111547
  Show dependency tree
 
Reported: 2010-01-26 16:27 UTC by hdu@apache.org
Modified: 2017-05-20 11:33 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2010-01-26 16:27:34 UTC
Writer currently justifies text by three different methods depending on the script type (Latin, CJK, CTL). 
To do this it only has the logical widths of the string components. This results in a very sub-optimal 
line layout because it does not use any of the advanced typographical features available from the fonts 
such as using alternate glyphs or ligatures, optical bounds, etc. and results in very tricky problems 
when glyph clusters or reordering is involved.

So the root cause problem is that the justified layout of the runs (aka. portions in WriterSpeak) is done 
in the wrong layer. Writer should let the specialized layout engines do this. It itself should focus on 
distributing the available space to portions.

In practice this means that the DrawTextArray argument should not provide the pDXArray, but only the 
justified width. The cursor positions should be gotten from GetCaretPositions instead of GetTextArray, 
because the former provides the physical positions the latter allow only a rough calculation of the 
logical positions.

This all would not only result in a better typographic layout (on the reference device) but also in a 
much better readability on the screen. Currently the lower layers have no way of distinguishing a writer 
request for e.g. a tab position to e.g. an adjusting-to-reference-device rounding problem (such as 
issue 88539).
Comment 1 Marcus 2017-05-20 11:33:19 UTC
Reset assigne to the default "issues@openoffice.apache.org".