Can a pango font be stretched?



Hi,

I work on Linux 9.
And I tried show some words on label1:
  label1 = gtk_label_new (NULL);
  gchar *str = g_strdup ("<span size='40960' stretch='extraexpanded'
style='italic'>
        this is a bar!</span>");
  gtk_label_set_markup (GTK_LABEL (label1), str);
  gtk_widget_show (label1);

And I did the same thing on label2 EXCEPT stretch='extracondensed'.
But the two labels did not show any difference.

I also failed to get a narrower or wider font by using
pango_font_description_set_stretch ();

Does the font attribute "stretch" is supported by Pango on Linux 9?
If so, how to use it?

Thanks in advance.

Michael








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