# incubator-ooo-dev mailing list archives

##### Site index · List index
Message view
Top
From ZuoJun Chen <zjchen...@gmail.com>
Subject Question about text clipping mechanism in word processor
Date Wed, 20 Jun 2012 08:47:08 GMT
Hi All,

I'm trying to handle a bug on text clipped in document . See Bug
119476 <https://issues.apache.org/ooo/show_bug.cgi?id=119476>  for more
details.

After investigation, I have some insights. When paragraph line spacing is
smaller than font size,

the text contained becomes too large for fit, then AOO will clipped text
as Incomplete part. The code

for text clipped mechanism can be located in method
<SwTxtFormatter::CalcRealHeight(..)> at

sw\source\core\text\itrform2.cxx line 1756.

I thought that the preferable way to fix this would be to considering the
spacing contains above paragraph

spacing property and line spacing property as the conditions to determine
whether clipping text. e.g.

Clipped text if the sum of  adding above paragraph spacing  and line
paragraph spacing  is smaller than font size,

otherwise do not clip text since above paragraph spacing and line spacing
are enough to display the text.

Noticed that there is a property named  below paragraph spacing, but I'm
not sure whether there is a need to consider this one,

Do this property impact text clipped in paragraph?

Any idea greatly appreciated.

Regards, Zuojun


Mime
• Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message