poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61169] Text with Japanese characters overflows textbox
Date Wed, 14 Jun 2017 22:17:27 GMT

Andreas Beeker <kiwiwings@apache.org> changed:

           What    |Removed                     |Added
                 OS|                            |All

--- Comment #2 from Andreas Beeker <kiwiwings@apache.org> ---
tl;dr: the textbox is too short because of an undefined/unregistered font and
there is an issue in calculating the text height / width in POI.

There are a few issues with the current rendering code, which also applies for
calculating the text height:
- the textbox indents are ignored when the text height is calculated
- you need to register a font having those japanese glyphs in
- my test font (mona) has a textlayout leading of 0, hence the leading need to
be fixed somehow

The rendering in Libre Office seems to use some kind of tracking (= opposite of
kerning). Although the Tracking attribute can be added to the AttributedString,
this is ignored when breaking the text. An alternative to modify the registered
font [1] doesn't work.

[1] https://stackoverflow.com/questions/13229725

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message