Re: Gtk2: how to get a bold variant of the default font

"muppet" wrote:

with a label, the easiest way is to use pango markup.

$label = Gtk2::Label->new;
$label->set_markup ("<b>Pango markup</b> is <big>cool</big>, like <i>html</i>, "
                  . "but <span color=\"blue\">you use the span tag</a> for "
                  . "some things.");

see the reference for it in the API docs:

Great, thanks for the quick answer. I didn't know that this Pango stuff
is *that* cool ;)



Joern Reder
Development Head ZYN! Coding Division -

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