« Return to Thread: help how to change font for a button label ?

I've found it

by AngeloP :: Rate this Message:

Reply to Author | View in Thread

         $this->button = new GtkButton("A");
        $butlabael=$this->button->get_child();
        $font = new PangoFontDescription ("Arial Bold 12");
        $butlababel->modify_font($font);


AngeloP wrote:
Any can help me how change font for a label in a gtkbutton ?

I've tryed set

$font = new PangoFontDescription ("Times New Roman Italic 20");
        $this->button->modify_font($font);

but this has not effect..


Thanks

 « Return to Thread: help how to change font for a button label ?