"because you need to queue a redraw of the label."
After this I wrote...
...
layout = gtk_label_get_layout(GTK_LABEL(label));After this I wrote...
...
pango_layout_set_text(layout, "TEXT", -1);
gtk_widget_queue_draw(label);
But nothing happened...
The only way that I found was setting a callback (expose-event) for the label....
But my problem is: I must do (emule) a printer, just a widget showing lines (like a paper) with a scroll. The printer receives some commands to change the mode, like normal font, double height font and double width font. If I have 42 cols and my char is 10x20 (pixels) then:
Normal font: 42 chars, (420 x 20) -> one normal line
Double height: 42 chars (420 x 40) -> two lines for each char, but the same width
Double width: 42 chars (210 x 20) -> two "char width" for each char, but the same height
There's no way to set the font height ou width with pango, just the size, in points, so I was trying to use the transformation matrix (PangoMatrix) and setting it to the context, but I had a lot of problems. =\
Can you (or someone) think in a better way to do this? =|
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list