How to center the text



Hi,

     I have drawn a rectangle using gdk_draw_rectangle. I am using
gdk_draw_string to write a char into that rectangle.
But every time I am manually centering the char inside the rectangle , I
mean by adjusting x an y position of char.
It is not accurately centered. Is there any function or way by which I
can center the char inside a drawn rectangle.

Thanks in Advance,
Jyothi.




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