Re: CJK line breaking (test doc)

From: <msevior_at_physics.unimelb.edu.au>
Date: Thu Mar 24 2005 - 12:56:41 CET

>
>
> First of all thanks to Thomas for looking at and committing the patch.
> I'll improve the commenting as soon as I get a moment. Life will be much
> easier with it in the tree.
>
>
> At present, I'm investigating the asserts generated by the test document
> that I posted to the mailing list on 7th March.
>
> In fp_Line::recalcMaxWidth() iMaxWidth is first set to the container
> width. Then the left and right margins are subtracted and finally the text
> indent. The problem seems to be that fl_BlockLayout::getTextIndent()
> returns negative values. As soon as the magnitude of the text indent
> exceeds the difference between the container and the page width then the
> assert is generated.
>
> Is it sensible for getTextIndent() to be returning negative values? It
> seems a little counter-intuitive to me, but I don't know the background to
> this.

Yes. It is useful. You might want to start a particular paragraph inside
the page margin.

In addition textIndex is actually the indent of the first line of the
paragraph. We use it for pistioning the list labels relative the overall
left margin of the block of text.

Cheers

Martin

>
> Best wishes,
>
> R.
>
Received on Thu Mar 24 12:59:54 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 24 2005 - 12:59:54 CET