gdk_draw_layout isn't working for some widgets



I'm using gdk_draw_layout to draw certain text on some widgets in my application, It works for most widgets, 
however, the text doesn't render atall for a few widgets.

For the above cases where gdk_draw_layout fails to render, XDrawString works well.

The problem is since XDrawString doesn't know anything about sophisticated fonts and internationalized text, 
I really can't use it.

Any idea why gdk_draw_layout wouldn't seem to render for certain widgets.

Here's a snippet of code I'm using:

PangoLayout *layout = gtk_widget_create_pango_layout(widget)
pango_layout_set_text(layout, text);
gdk_draw_layout(window, widget->style->fg_gc[state], x, y, layout);

-vc



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