---
name: "Gtk2::FontButton"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::FontButton"
---

# Gtk2::FontButton(3pm)

wrapper for GtkFontButton

## NAME

Gtk2::FontButton - wrapper for GtkFontButton

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Button
                                +----Gtk2::FontButton
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Activatable
```

## METHODS

### widget = Gtk2::FontButton-\>new ($fontname=undef)

- •

  `$fontname` (string)

### widget = Gtk2::FontButton-\>new\_with\_font ($fontname=undef)

- •

  `$fontname` (string)

### string = $font\_button-\>get\_font\_name

### boolean = $font\_button-\>set\_font\_name ($fontname)

- •

  `$fontname` (string)

### boolean = $font\_button-\>get\_show\_size

### $font\_button-\>set\_show\_size ($show\_size)

- •

  `$show_size` (boolean)

### boolean = $font\_button-\>get\_show\_style

### $font\_button-\>set\_show\_style ($show\_style)

- •

  `$show_style` (boolean)

### string = $font\_button-\>get\_title

### $font\_button-\>set\_title ($title)

- •

  `$title` (string)

### boolean = $font\_button-\>get\_use\_font

### $font\_button-\>set\_use\_font ($use\_font)

- •

  `$use_font` (boolean)

### boolean = $font\_button-\>get\_use\_size

### $font\_button-\>set\_use\_size ($use\_size)

- •

  `$use_size` (boolean)

## PROPERTIES

- 'font-name' (string : default "Sans 12" : readable / writable / private)

  The name of the selected font

- 'show-size' (boolean : default true : readable / writable / private)

  Whether selected font size is shown in the label

- 'show-style' (boolean : default true : readable / writable / private)

  Whether the selected font style is shown in the label

- 'title' (string : default "Pick a Font" : readable / writable / private)

  The title of the font selection dialog

- 'use-font' (boolean : default false : readable / writable / private)

  Whether the label is drawn in the selected font

- 'use-size' (boolean : default false : readable / writable / private)

  Whether the label is drawn with the selected font size

## SIGNALS

- **font-set** (Gtk2::FontButton)

  ## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
