Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# font.hh File Reference

A C++ wrapper interface for Pango fonts. More...

`#include <xfc/pango/types.hh>`
`#include <xfc/glib/boxed.hh>`
`#include <xfc/glib/object.hh>`
`#include <pango/pango-font.h>`
`#include <vector>`
`#include <xfc/pango/inline/font.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::Pango

## Classes

- class Xfc::Pango::FontDescription
    A PangoFontDescription C++ wrapper class. More...
- class Xfc::Pango::FontMetrics
    A PangoFontMetrics C++ wrapper class. More...
- class Xfc::Pango::FontFace
    A PangoFontFace C++ wrapper class. More...
- class Xfc::Pango::FontFamily
    A PangoFontFamily C++ wrapper class. More...
- class Xfc::Pango::Font
    A PangoFont C++ wrapper class. More...

## Typedefs

- typedef unsigned int FontMaskField
    FontMaskField holds one or more values from the Pango::FontMask enumeration OR'd together.

## Enumerations

- enum Style {
  STYLE_NORMAL = PANGO_STYLE_NORMAL,
  STYLE_OBLIQUE = PANGO_STYLE_OBLIQUE,
  STYLE_ITALIC = PANGO_STYLE_ITALIC
  }
    Specifies the various slant styles possible for a font. More...
- enum Variant {
  VARIANT_NORMAL = PANGO_VARIANT_NORMAL,
  VARIANT_SMALL_CAPS = PANGO_VARIANT_SMALL_CAPS
  }
    Specifies the capitalization variant of the font. More...
- enum Weight {
  WEIGHT_ULTALIGHT = PANGO_WEIGHT_ULTRALIGHT,
  WEIGHT_LIGHT = PANGO_WEIGHT_LIGHT,
  WEIGHT_NORMAL = PANGO_WEIGHT_NORMAL,
  WEIGHT_SEMIBOLD = PANGO_WEIGHT_SEMIBOLD,
  WEIGHT_BOLD = PANGO_WEIGHT_BOLD,
  WEIGHT_ULTRABOLD = PANGO_WEIGHT_ULTRABOLD,
  WEIGHT_HEAVY = PANGO_WEIGHT_HEAVY
  }
    Specifies the weight (boldness) of a font. More...
- enum Stretch {
  STRETCH_UTLRA_CONDENSED = PANGO_STRETCH_ULTRA_CONDENSED,
  STRETCH_EXTRA_CONDENSED = PANGO_STRETCH_EXTRA_CONDENSED,
  STRETCH_CONDENSED = PANGO_STRETCH_CONDENSED,
  STRETCH_SEMI_CONDENSED = PANGO_STRETCH_SEMI_CONDENSED,
  STRETCH_NORMAL = PANGO_STRETCH_NORMAL,
  STRETCH_SEMI_EXPANDED = PANGO_STRETCH_SEMI_EXPANDED,
  STRETCH_EXPANDED = PANGO_STRETCH_EXPANDED,
  STRETCH_EXTRA_EXPANDED = PANGO_STRETCH_EXTRA_EXPANDED,
  STRETCH_ULTRA_EXPANDED = PANGO_STRETCH_ULTRA_EXPANDED
  }
    Specifies the width of the font relative to other designs within a family. More...
- enum FontMask {
  FONT_MASK_FAMILY = PANGO_FONT_MASK_FAMILY,
  FONT_MASK_STYLE = PANGO_FONT_MASK_STYLE,
  FONT_MASK_VARIANT = PANGO_FONT_MASK_VARIANT,
  FONT_MASK_WEIGHT = PANGO_FONT_MASK_WEIGHT,
  FONT_MASK_STRETCH = PANGO_FONT_MASK_STRETCH,
  FONT_MASK_SIZE = PANGO_FONT_MASK_SIZE
  }
    The bit flags in a FontMask correspond to fields in a FontDescription that have been set. More...

## Detailed Description

A C++ wrapper interface for Pango fonts.

Provides objects representing abstract fonts, such as FontDescription, Font, FontFace and FontFamily.

## Enumeration Type Documentation

enum FontMask

The bit flags in a FontMask correspond to fields in a FontDescription that have been set.

Enumeration values:

  FONT_MASK_FAMILY | The font family is specified.
  FONT_MASK_STYLE | The font style is specified.
  FONT_MASK_VARIANT | T font variant is specified.
  FONT_MASK_WEIGHT | The font weight is specified.
  FONT_MASK_STRETCH | The font stretch is specified.
  FONT_MASK_SIZE | The font size is specified.

enum Stretch

Specifies the width of the font relative to other designs within a family.

Enumeration values:

  STRETCH_UTLRA_CONDENSED | Ultra condensed width.
  STRETCH_EXTRA_CONDENSED | Extra condensed width.
  STRETCH_CONDENSED | Condensed width.
  STRETCH_SEMI_CONDENSED | Semi condensed width.
  STRETCH_NORMAL | Normal width.
  STRETCH_SEMI_EXPANDED | Semi expanded width.
  STRETCH_EXPANDED | Expanded width.
  STRETCH_EXTRA_EXPANDED | Extra expanded width.
  STRETCH_ULTRA_EXPANDED | Ultra expanded width.

enum Style

Specifies the various slant styles possible for a font.

Enumeration values:

  STYLE_NORMAL | The font is upright.
  STYLE_OBLIQUE | The font is slanted, but in a roman style.
  STYLE_ITALIC | The font is slanted in an italic style.

enum Variant

Specifies the capitalization variant of the font.

Enumeration values:

  VARIANT_NORMAL | A normal font.
  VARIANT_SMALL_CAPS | A font with the lower case characters replaced by smaller variants of the capital characters.

enum Weight

Specifies the weight (boldness) of a font.

This is a numerical value ranging from 100 to 900, but there are some predefined values:

Enumeration values:

  WEIGHT_ULTALIGHT | The ultralight weight (= 200).
  WEIGHT_LIGHT | The light weight (=300).
  WEIGHT_NORMAL | The default weight (= 400).
  WEIGHT_SEMIBOLD | The semi bold weight (= 600).
  WEIGHT_BOLD | The bold weight (= 700).
  WEIGHT_ULTRABOLD | The ultrabold weight (= 800).
  WEIGHT_HEAVY | The heavy weight (= 900).

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3