Gnome2::Print::Font::Constants(3pm)

Gnome2::Print::Font::Constants3pm

Constants for use with gnom2::print::font

Usage

  use Gnome2::Print; # gets the actual Gnome2::Print::Font objects and methods
  use Gnome2::Print::Font::Constants; # load extra constants

Overview

Similarily to Pango, in order to effectively use Gnome2::Print::Font you need a few constants that are not supplied by the type system or by other means.

This module exports all of those extra constants when you load it. They use the fully-prefixed names from the C documentation.

Export

GnomeFontWeight is an enumeration, but it's not registered inside the Glib type system:

  GNOME_FONT_LIGHTEST
  GNOME_FONT_EXTRA_LIGHT
  GNOME_FONT_THIN
  GNOME_FONT_LIGHT
  GNOME_FONT_BOOK
  GNOME_FONT_REGULAR
  GNOME_FONT_MEDIUM
  GNOME_FONT_SEMI
  GNOME_FONT_DEMI
  GNOME_FONT_BOLD
  GNOME_FONT_HEAVY
  GNOME_FONT_EXTRABOLD
  GNOME_FONT_BLACK
  GNOME_FONT_EXTRABLACK
  GNOME_FONT_HEAVIEST

These weights are also available without importing this module, using Gnome2::Print::Font->weight, e.g.:

  Gnome2::Print::Font->bold;

Releases

3 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0

Bugs

This module shouldn't exist, but some parts of the API just aren't clean.

This stuff is hardcoded directly from the headers of libgnomeprint 2.2.3

Author

Emmanuele Bassi <[email protected]>

From libgnome2-print-perl 0.95.1-1+b1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.