Re: gdk_draw_string w/ word wrap?

Werner Lehmann <wl bwl uni-kiel de> writes:

is there an easy way to draw text on a drawable with
word wrap? Ideally I could give a bounding rect and
a justification (centered, left, right) and a function
would draw the given string inside of that rect...

GTK+ 2.0 has this (you create a PangoLayout, set justification and
wrap on the layout, then call gdk_draw_layout()). But, in GTK 1.2 you
have to do it yourself.


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