blip  0.1
FontGlyph Class Reference

A TrueType font character glyph. More...

#include <Font.hpp>

Public Member Functions

 ~FontGlyph ()
 Destructor. More...
 
const PixmapgetPixmap () const
 Get the Pixmap which contains the glyph, rendered as an 8-bit alpha image. More...
 
int getAdvance () const
 Get the glyph's advance, in pixels. More...
 
int getLeft () const
 Get the glyph's left bearing, in pixels. More...
 
int getTop () const
 Get the glyph's top bearing, in pixels. More...
 
int getAscent () const
 Get the glyph's ascent, in pixels. More...
 
int getDescent () const
 Get the glyph's descent, in pixels. More...
 

Detailed Description

A TrueType font character glyph.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ~FontGlyph()

~FontGlyph ( )

Destructor.

Member Function Documentation

◆ getAdvance()

int getAdvance ( ) const
inline

Get the glyph's advance, in pixels.

◆ getAscent()

int getAscent ( ) const

Get the glyph's ascent, in pixels.

◆ getDescent()

int getDescent ( ) const

Get the glyph's descent, in pixels.

◆ getLeft()

int getLeft ( ) const
inline

Get the glyph's left bearing, in pixels.

◆ getPixmap()

const Pixmap& getPixmap ( ) const
inline

Get the Pixmap which contains the glyph, rendered as an 8-bit alpha image.

◆ getTop()

int getTop ( ) const
inline

Get the glyph's top bearing, in pixels.


The documentation for this class was generated from the following files: