To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=85422
Issue #|85422
Summary|Text-to-text alignment Middle does not lay Asian chara
|cters in the middle.
Component|Word processor
Version|OOo 2.3
Platform|All
URL|
OS/Version|Windows, all
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|formatting
Assigned to|mru
Reported by|tora
------- Additional comments from [EMAIL PROTECTED] Mon Jan 21 06:35:55 +0000
2008 -------
Phenomenon:
With OpenOffice.org 2.3 Asian characters in various font size are not laid
in the middle of line under Text-to-text alignment Middle in vertical writing.
Additionally, Text-to-text alignment Top or Bottom does not work
appropriately.
For details, see a snapshot.
Quick investigation:
When the module vcl provides information on geometrics of a glyph, the vcl
seems to return an artificial leading for Asian glyphs, which is calculated
with an equation like "0.30 * (Ascent + Decent)."
vcl/win/source/gdi/salgdi3.cxx
void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric )
{
...
// #110641# external leading for Asian fonts.
// The factor 0.3 has been confirmed with experiments.
long nCJKExtLeading = static_cast<long>(0.30 * (pMetric->mnAscent +
pMetric->mnDescent));
nCJKExtLeading -= pMetric->mnExtLeading;
pMetric->mnExtLeading = (nCJKExtLeading > 0) ? nCJKExtLeading : 0;
The following source files also have the similar code fragments:
vcl/aqua/source/gdi/salgdi.cxx
vcl/source/glyphs/gcach_ftyp.cxx
Quick experiment:
Applying a patch to some methods in the module vcl in order to cancel the
artificial leading, Writer becomes to lay Asian characters in an appropriate
way.
For details, see an experimental patch for the module vcl.
The patch, however, has a side effect. Distances between lines become smaller
than before applying the patch. But, it could be said that having no
artificial
leading is better than having such a somewhat unexpected leading because the
amount of leading is designed by font designers.
Solution:
Further discussion might be needed to have better specifications and
implementation.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]