Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Pango::FontMap Class Reference

A PangoFontMap C++ wrapper class. More...

#include <xfc/pango/fontmap.hh>

Inheritance diagram for Xfc::Pango::FontMap:

Xfc::G::Object Xfc::G::TypeInstance Xfc::Trackable List of all members.

Public Member Functions

Accessors
Methods

Detailed Description

A PangoFontMap C++ wrapper class.

FontMap represents the set of fonts available for a particular rendering system. This is a virtual object with implementations being specific to particular rendering systems.


Constructor & Destructor Documentation

Xfc::Pango::FontMap::FontMap ( PangoFontMap *  fontmap,
bool  owns_reference = true 
) [explicit, protected]

Construct a new FontMap from an existing PangoFontMap.

Parameters:
fontmap A pointer to a PangoFontMap.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The fontmap can be a newly created PangoFontMap or an existing PangoFontMap. (see G::Object::Object).

Xfc::Pango::FontMap::FontMap ( PangoFontMap *  fontmap,
bool  owns_reference = true 
) [explicit, protected]

Construct a new FontMap from an existing PangoFontMap.

Parameters:
fontmap A pointer to a PangoFontMap.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The fontmap can be a newly created PangoFontMap or an existing PangoFontMap. (see G::Object::Object).


Member Function Documentation

Font* Xfc::Pango::FontMap::load_font ( Context context,
const FontDescription desc 
)

Load the font in the fontmap that is the closest match for desc.

Parameters:
context The Context the font will be used with.
desc A FontDescription describing the font to load.
Returns:
The font loaded, or null if no font matched.

Fontset* Xfc::Pango::FontMap::load_fontset ( Context context,
const FontDescription desc,
PangoLanguage *  language 
)

Load a set of fonts in the fontmap that can be used to render a font matching desc.

Parameters:
context The Context the font will be used with.
desc A FontDescription describing the font to load.
language A PangoLanguage the fonts will be used for.
Returns:
The fontset, or null if no font matched.

bool Xfc::Pango::FontMap::list_families ( std::vector< FontFamily * > &  families  )  const

List all families for a fontmap.

Parameters:
families A reference to a vector of FontFamily* to hold the font families.
Returns:
true if the vector is not empty.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3