---
name: "Pango::FontDescription"
section: "3pm"
platform: "linux"
package: "pango-perl"
version: "1.227-20"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Pango::FontDescription"
---

# Pango::FontDescription(3pm)

wrapper for PangoFontDescription

## NAME

Pango::FontDescription - wrapper for PangoFontDescription

## HIERARCHY

```
  Glib::Boxed
  +----Pango::FontDescription
```

## METHODS

### fontdescription = Pango::FontDescription-\>new

### double = Pango-\>PANGO\_PIXELS ($d)

- •

  `$d` (double)

### $desc-\>set\_absolute\_size ($size)

- •

  `$size` (double)

Since: pango 1.8

### boolean = $desc-\>better\_match ($old\_match, $new\_match)

- •

  `$old_match` (Pango::FontDescription or undef)

- •

  `$new_match` (Pango::FontDescription)

### boolean = $desc1-\>equal ($desc2)

- •

  `$desc2` (Pango::FontDescription)

### string = $desc-\>get\_family

### $desc-\>set\_family ($family)

- •

  `$family` (string)

### $desc-\>set\_family\_static ($family)

- •

  `$family` (string)

### fontdescription = Pango::FontDescription-\>from\_string ($str)

- •

  `$str` (string)

### gravity = $desc-\>get\_gravity

Since: pango 1.16

### $desc-\>set\_gravity ($gravity)

- •

  `$gravity` (Pango::Gravity)

Since: pango 1.16

### integer = $desc-\>hash

### $desc-\>merge ($desc\_to\_merge, $replace\_existing)

- •

  `$desc_to_merge` (Pango::FontDescription)

- •

  `$replace_existing` (boolean)

### $desc-\>merge\_static ($desc\_to\_merge, $replace\_existing)

- •

  `$desc_to_merge` (Pango::FontDescription)

- •

  `$replace_existing` (boolean)

### double = Pango-\>pixels ($d)

- •

  `$d` (double)

### double = Pango-\>scale

### double = Pango-\>scale\_large

### double = Pango-\>scale\_medium

### double = Pango-\>scale\_small

### double = Pango-\>scale\_x\_large

### double = Pango-\>scale\_x\_small

### double = Pango-\>scale\_xx\_large

### double = Pango-\>scale\_xx\_small

### fontmask = $desc-\>get\_set\_fields

### integer = $desc-\>get\_size

### boolean = $desc-\>get\_size\_is\_absolute

Since: pango 1.8

### $desc-\>set\_size ($size)

- •

  `$size` (integer)

### stretch = $desc-\>get\_stretch

### $desc-\>set\_stretch ($stretch)

- •

  `$stretch` (Pango::Stretch)

### style = $desc-\>get\_style

### $desc-\>set\_style ($style)

- •

  `$style` (Pango::Style)

### string = $desc-\>to\_filename

### string = $desc-\>to\_string

### $desc-\>unset\_fields ($to\_unset)

- •

  `$to_unset` (Pango::FontMask)

### variant = $desc-\>get\_variant

### $desc-\>set\_variant ($variant)

- •

  `$variant` (Pango::Variant)

### weight = $desc-\>get\_weight

### $desc-\>set\_weight ($weight)

- •

  `$weight` (Pango::Weight)

## ENUMS AND FLAGS

### flags Pango::FontMask

- •

  'family' / 'PANGO\_FONT\_MASK\_FAMILY'

- •

  'style' / 'PANGO\_FONT\_MASK\_STYLE'

- •

  'variant' / 'PANGO\_FONT\_MASK\_VARIANT'

- •

  'weight' / 'PANGO\_FONT\_MASK\_WEIGHT'

- •

  'width' / 'PANGO\_FONT\_MASK\_WIDTH'

- •

  'stretch' / 'PANGO\_FONT\_MASK\_STRETCH'

- •

  'size' / 'PANGO\_FONT\_MASK\_SIZE'

- •

  'gravity' / 'PANGO\_FONT\_MASK\_GRAVITY'

- •

  'variations' / 'PANGO\_FONT\_MASK\_VARIATIONS'

- •

  'features' / 'PANGO\_FONT\_MASK\_FEATURES'

- •

  'color' / 'PANGO\_FONT\_MASK\_COLOR'

### enum Pango::Gravity

- •

  'south' / 'PANGO\_GRAVITY\_SOUTH'

- •

  'east' / 'PANGO\_GRAVITY\_EAST'

- •

  'north' / 'PANGO\_GRAVITY\_NORTH'

- •

  'west' / 'PANGO\_GRAVITY\_WEST'

- •

  'auto' / 'PANGO\_GRAVITY\_AUTO'

### enum Pango::Stretch

- •

  'ultra-condensed' / 'PANGO\_STRETCH\_ULTRA\_CONDENSED'

- •

  'extra-condensed' / 'PANGO\_STRETCH\_EXTRA\_CONDENSED'

- •

  'condensed' / 'PANGO\_STRETCH\_CONDENSED'

- •

  'semi-condensed' / 'PANGO\_STRETCH\_SEMI\_CONDENSED'

- •

  'normal' / 'PANGO\_STRETCH\_NORMAL'

- •

  'semi-expanded' / 'PANGO\_STRETCH\_SEMI\_EXPANDED'

- •

  'expanded' / 'PANGO\_STRETCH\_EXPANDED'

- •

  'extra-expanded' / 'PANGO\_STRETCH\_EXTRA\_EXPANDED'

- •

  'ultra-expanded' / 'PANGO\_STRETCH\_ULTRA\_EXPANDED'

### enum Pango::Style

- •

  'normal' / 'PANGO\_STYLE\_NORMAL'

- •

  'oblique' / 'PANGO\_STYLE\_OBLIQUE'

- •

  'italic' / 'PANGO\_STYLE\_ITALIC'

### enum Pango::Variant

- •

  'normal' / 'PANGO\_VARIANT\_NORMAL'

- •

  'small-caps' / 'PANGO\_VARIANT\_SMALL\_CAPS'

- •

  'all-small-caps' / 'PANGO\_VARIANT\_ALL\_SMALL\_CAPS'

- •

  'petite-caps' / 'PANGO\_VARIANT\_PETITE\_CAPS'

- •

  'all-petite-caps' / 'PANGO\_VARIANT\_ALL\_PETITE\_CAPS'

- •

  'unicase' / 'PANGO\_VARIANT\_UNICASE'

- •

  'title-caps' / 'PANGO\_VARIANT\_TITLE\_CAPS'

### enum Pango::Weight

- •

  'thin' / 'PANGO\_WEIGHT\_THIN'

- •

  'ultralight' / 'PANGO\_WEIGHT\_ULTRALIGHT'

- •

  'light' / 'PANGO\_WEIGHT\_LIGHT'

- •

  'semilight' / 'PANGO\_WEIGHT\_SEMILIGHT'

- •

  'book' / 'PANGO\_WEIGHT\_BOOK'

- •

  'normal' / 'PANGO\_WEIGHT\_NORMAL'

- •

  'medium' / 'PANGO\_WEIGHT\_MEDIUM'

- •

  'semibold' / 'PANGO\_WEIGHT\_SEMIBOLD'

- •

  'bold' / 'PANGO\_WEIGHT\_BOLD'

- •

  'ultrabold' / 'PANGO\_WEIGHT\_ULTRABOLD'

- •

  'heavy' / 'PANGO\_WEIGHT\_HEAVY'

- •

  'ultraheavy' / 'PANGO\_WEIGHT\_ULTRAHEAVY'

## SEE ALSO

Pango, Glib::Boxed

## COPYRIGHT

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

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