Re: Finding white space or line break candidates using Pango?



On Mon, 2007-11-12 at 21:32 +0100, Leon Woestenberg wrote:
> Hello,
> 
> using Pango, I would like to layout a infinitely long (UTF-8 encoded)
> text piece by piece (as it scrolls by), and my best guess would be to
> do this at white space, or line break candidates.
> 
> Is there a function available that helps me in Pango, or should I use
> some C library function?

Currently there is no "streaming" API in Pango, but you can most of the
time get away without it.  The function you are looking for is called
pango_get_log_attrs().


> Best regards,
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





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