text size in pango



Hello!

I draw my text with gdk_draw_layout_with_colors, but need to know the
size of the string. In GTK-1.2 I did this with
k = gdk_text_width (smalltextfont, txt, strlen (txt));
I need the same in pango, to draw a box around it and to position the
text on the graphic.



-- 
Fritz "der mit dem Linux tanzt" Ganter         http://www.kraftvoll.at
 Key fingerprint = 555A DDBB 3985 16FF CD41  2031 C485 1783 BF34 728F





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