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:

http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html

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

Regards,

Joern

-- 
Joern Reder
Development Head ZYN! Coding Division - http://www.zyn.de/




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