drawing text in gtkdrawable...



Hi,

I'm using Pango to draw text, for example:
double x=3,14;
PangoLayout *mytext;
char num[5];

sprintf(num,"%.2f",x);
mytext=gtk_widget_create_pango_layout(my_drawable,num);
gdk_draw_layout(pixmap,gc,450,450,mytext);

works fine, but how do I draw text that I can rotate 360 degrees (eg. draw 
horizontally from up to down, or draw upside down)
Is that matter of PangoLayout and I can change it when I create layout, or can 
I change it somehow with gtk_layout_set.....something ?

thanks
Marek



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