Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

FT2Font Class Reference

Freetype2 font. More...

#include <ft2_font.hpp>

Inheritance diagram for FT2Font:

GenericFont SkinObject List of all members.

Public Member Functions

virtual bool init ()
 Initalize the object. Returns false if it failed.
virtual GenericBitmapdrawString (const UString &rString, uint32_t color, int maxWidth=-1) const
virtual int getSize () const
 Get the text height.

Detailed Description

Freetype2 font.

Definition at line 40 of file ft2_font.hpp.


Member Function Documentation

GenericBitmap * FT2Font::drawString const UString &  rString,
uint32_t  color,
int  maxWidth = -1
const [virtual]
 

Render a string on a bitmap. If maxWidth != -1, the text is truncated with '...'

Implements GenericFont.

Definition at line 139 of file ft2_font.cpp.

References FT2Bitmap::draw(), and SkinObject::getIntf().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:03 2005 for vlc-0.8.4a by  doxygen 1.4.2