Question about pango_layout_set_spacing().



HI,
I have labe has 2 lines. I want to set the space between the lines, The
following code don't work.
 
        GtkWidget *lbl= gtk_label_new("line1\nline2")
        PangoLayout *ly=gtk_label_get_layout(GTK_LABEL(lbl));  
        pango_layout_set_spacing(ly,20);

Can some one give a look?

Thanks.





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