Pango::FontDescription(3) User Contributed Perl Documentation Pango::FontDescription(3)

Pango::FontDescription - wrapper for PangoFontDescription

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

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)

$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)

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

integer = $desc->get_size

boolean = $desc->get_size_is_absolute

Since: pango 1.8

$desc->set_size ($size)

$size (integer)

$desc->set_stretch ($stretch)

$stretch (Pango::Stretch)

$desc->set_style ($style)

$style (Pango::Style)

string = $desc->to_filename

string = $desc->to_string

$desc->unset_fields ($to_unset)

$to_unset (Pango::FontMask)

$desc->set_variant ($variant)

$variant (Pango::Variant)

$desc->set_weight ($weight)

$weight (Pango::Weight)

  • 'family' / 'PANGO_FONT_MASK_FAMILY'
  • 'style' / 'PANGO_FONT_MASK_STYLE'
  • 'variant' / 'PANGO_FONT_MASK_VARIANT'
  • 'weight' / 'PANGO_FONT_MASK_WEIGHT'
  • 'stretch' / 'PANGO_FONT_MASK_STRETCH'
  • 'size' / 'PANGO_FONT_MASK_SIZE'
  • 'gravity' / 'PANGO_FONT_MASK_GRAVITY'
  • 'variations' / 'PANGO_FONT_MASK_VARIATIONS'

  • 'south' / 'PANGO_GRAVITY_SOUTH'
  • 'east' / 'PANGO_GRAVITY_EAST'
  • 'north' / 'PANGO_GRAVITY_NORTH'
  • 'west' / 'PANGO_GRAVITY_WEST'
  • 'auto' / 'PANGO_GRAVITY_AUTO'

  • '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'

  • 'normal' / 'PANGO_STYLE_NORMAL'
  • 'oblique' / 'PANGO_STYLE_OBLIQUE'
  • 'italic' / 'PANGO_STYLE_ITALIC'

  • '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'

  • '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'

Pango, Glib::Boxed

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

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

2024-09-01 perl v5.40.0