Re: Whitespace at line-wrap spot preserved

On Tue, 2006-10-03 at 08:54 -0500, Matt Hoosier wrote:
> Hi,
> I'm doing some rendering with a PangoLayout, and it seems that when
> wrapping is enabled the space at which wrapping is performed, is still
> allocated physical horizontal space (for Latin languages, anyway).
> This works okay for PANGO_ALIGN_LEFT layouts, but the empty space
> causes a sort of ragged effect with PANGO_ALIGN_RIGHT, and off-center
> calculations for PANGO_ALIGN_CENTER.
> Is there some simple thing that I'm missing?

I noticed the same bug when working on justification for Pango.

My new layout code fixes this as well as adding justification:

> Example source is attached which paints the whitespace in a different
> color, so that the effect is a little more visible.

You forgot this.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]