Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | Friends

vl::Font Class Reference

A font to be used with a Text renderable. More...

#include <Font.hpp>

Inheritance diagram for vl::Font:
vl::Object

List of all members.

Public Member Functions

 ~Font ()
virtual const char * className ()
 Returns the name of the class.
bool operator< (const Font &other) const
const StringfilePath () const
void loadFont (const String &path)
 Loads a font using fileSystem()locateFile()
int size () const
void setSize (int size)
Glyphglyph (int character)
void setSmooth (bool smooth)
bool smooth () const
void releaseFreeTypeData ()

Protected Attributes

String mFilePath
std::map< int, ref< Glyph > > mGlyphMap
FT_Face mFT_Face
std::vector< unsigned char > mMemoryFile
int mSize
float mHeight
bool mSmooth

Friends

class Text
class FontManager

Detailed Description

A font to be used with a Text renderable.


Constructor & Destructor Documentation

vl::Font::~Font (  )

Member Function Documentation

virtual const char* vl::Font::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

bool vl::Font::operator< ( const Font other ) const [inline]
const String& vl::Font::filePath (  ) const [inline]
void vl::Font::loadFont ( const String path )

Loads a font using fileSystem()locateFile()

int vl::Font::size (  ) const [inline]
void vl::Font::setSize ( int  size )
Glyph* vl::Font::glyph ( int  character )
void vl::Font::setSmooth ( bool  smooth )
bool vl::Font::smooth (  ) const [inline]
void vl::Font::releaseFreeTypeData (  )

Friends And Related Function Documentation

friend class Text [friend]
friend class FontManager [friend]

Member Data Documentation

std::map< int, ref<Glyph> > vl::Font::mGlyphMap [protected]
std::vector<unsigned char> vl::Font::mMemoryFile [protected]
int vl::Font::mSize [protected]
float vl::Font::mHeight [protected]
bool vl::Font::mSmooth [protected]

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

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:08:01.
Permission is granted to use this page to write and publish articles regarding Visualization Library.