---
name: "Gtk2::FontSelectionDialog"
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::FontSelectionDialog"
---

# Gtk2::FontSelectionDialog(3pm)

wrapper for GtkFontSelectionDialog

## NAME

Gtk2::FontSelectionDialog - wrapper for GtkFontSelectionDialog

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Window
                                +----Gtk2::Dialog
                                     +----Gtk2::FontSelectionDialog
```

## INTERFACES

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

## METHODS

### widget = Gtk2::FontSelectionDialog-\>new ($title)

- •

  `$title` (string)

### widget = $fsd-\>get\_apply\_button

### widget = $fsd-\>get\_cancel\_button

### font = $fsd-\>get\_font

### string = $fsd-\>get\_font\_name

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

- •

  `$fontname` (string)

### widget = $fsd-\>get\_font\_selection

Since: gtk+ 2.22

### widget = $fsd-\>get\_ok\_button

### string = $fsd-\>get\_preview\_text

### $fsd-\>set\_preview\_text ($text)

- •

  `$text` (string)

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window, Gtk2::Dialog

## COPYRIGHT

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

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