logo top
Main Page   Widgets   Namespaces   Book  

Pango::Font Class Reference

A Pango::Font is used to represent a font in a rendering-system-independent matter. More...

Inheritance diagram for Pango::Font:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Font ()
PangoFont* gobj ()
 Provides access to the underlying C GObject.

const PangoFont* gobj () const
 Provides access to the underlying C GObject.

PangoFont* gobj_copy ()
FontDescription describe () const
Glib::RefPtr<Coverageget_coverage (const Language& language) const
FontMetrics get_metrics () const
 Gets overall metric information for a font.

FontMetrics get_metrics (const Language& language) const
void get_glyph_extents (Glyph glyph, Rectangle& ink_rect, Rectangle& logical_rect) const
Rectangle get_glyph_ink_extents (Glyph glyph) const
 Get the ink extents of a glyph within the font.

Rectangle get_glyph_logical_extents (Glyph glyph) const
 Gets the logical extents of a glyph within the font.


Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Pango::Fontwrap (PangoFont* object, bool take_copy=false)

Detailed Description

A Pango::Font is used to represent a font in a rendering-system-independent matter.


Constructor & Destructor Documentation

virtual Pango::Font::~Font (  )  [virtual]
 


Member Function Documentation

FontDescription Pango::Font::describe (  )  const
 

Glib::RefPtr<Coverage> Pango::Font::get_coverage ( const Language language  )  const
 

void Pango::Font::get_glyph_extents ( Glyph  glyph,
Rectangle ink_rect,
Rectangle logical_rect
const
 

Rectangle Pango::Font::get_glyph_ink_extents ( Glyph  glyph  )  const
 

Get the ink extents of a glyph within the font.

Parameters:
glyph The glyph index.
Returns:
The extents of the glyph as drawn.

Rectangle Pango::Font::get_glyph_logical_extents ( Glyph  glyph  )  const
 

Gets the logical extents of a glyph within the font.

Parameters:
glyph The glyph index.
Returns:
The logical extents of the glyph.

FontMetrics Pango::Font::get_metrics ( const Language language  )  const
 

FontMetrics Pango::Font::get_metrics (  )  const
 

Gets overall metric information for a font.

The metrics may be substantially different for different scripts. However, this function overload returns the metrics for the entire font.

const PangoFont* Pango::Font::gobj (  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

PangoFont* Pango::Font::gobj (  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Glib::ObjectBase.

PangoFont* Pango::Font::gobj_copy (  ) 
 


Friends And Related Function Documentation

Glib::RefPtr<Pango::Font> wrap ( PangoFont*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001