Re: getting a pango tabarray for a specific line of text



On Wed, 2007-11-21 at 22:00 +0100, Nick Gravgaard wrote:

Thanks. I presume then that there must be some way of getting a layout
object for a certain line. I've looked through the documentation but I
can't see how I should do this - how do I do that?

There's not.  You can always copy the layout (pango_layout_copy()) and
then set its text to the text of the line, using line->start_index and
line->length.


Nick

-- 
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]