Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A font to be used with a Text renderable. More...
#include <Font.hpp>
Public Member Functions | |
~Font () | |
Destructor. | |
bool | operator< (const Font &other) const |
Less-than operator. | |
const String & | filePath () const |
The font's file path. | |
void | loadFont (const String &path) |
Loads a font using fileSystem()locateFile(). | |
int | size () const |
The size of the font. | |
void | setSize (int size) |
The size of the font. | |
Glyph * | glyph (int character) |
Returns (and eventually creates) the Glyph* associated to the given character. | |
void | setSmooth (bool smooth) |
Whether the font rendering should use linear filtering or not. | |
bool | smooth () const |
Whether the font rendering should use linear filtering or not. | |
void | releaseFreeTypeData () |
Releases the FreeType's FT_Face used by a Font. | |
void | setFontManager (FontManager *fm) |
The FontManager associated to this Font used to acquire/release FreeType resources. | |
const FontManager * | fontManager () const |
The FontManager associated to this Font used to acquire/release FreeType resources. | |
FontManager * | fontManager () |
The FontManager associated to this Font used to acquire/release FreeType resources. | |
bool | freeTypeLoadForceAutoHint () const |
Whether FT_Load_Char() should be called with FT_LOAD_FORCE_AUTOHINT (default) or FT_LOAD_DEFAULT. | |
void | setFreeTypLoadForceAutoHint (bool enable) |
Whether FT_Load_Char() should be called with FT_LOAD_FORCE_AUTOHINT (default) or FT_LOAD_DEFAULT. | |
Protected Attributes | |
FontManager * | mFontManager |
String | mFilePath |
std::map< int, ref< Glyph > > | mGlyphMap |
FT_Face | mFT_Face |
std::vector< char > | mMemoryFile |
int | mSize |
float | mHeight |
bool | mSmooth |
bool | mFreeTypeLoadForceAutoHint |
Friends | |
class | CoreText |
class | Text |
class | FontManager |
A font to be used with a Text renderable.
Definition at line 127 of file Font.hpp.
vl::Font::~Font | ( | ) |
Destructor.
bool vl::Font::operator< | ( | const Font & | other ) | const [inline] |
const String& vl::Font::filePath | ( | ) | const [inline] |
The font's file path.
Definition at line 161 of file Font.hpp.
Referenced by operator<(), and vl::VectorGraphics::setFont().
void vl::Font::loadFont | ( | const String & | path ) |
Loads a font using fileSystem()locateFile().
int vl::Font::size | ( | ) | const [inline] |
The size of the font.
Definition at line 167 of file Font.hpp.
Referenced by operator<(), and vl::VectorGraphics::setFont().
void vl::Font::setSize | ( | int | size ) |
The size of the font.
Glyph* vl::Font::glyph | ( | int | character ) |
Returns (and eventually creates) the Glyph* associated to the given character.
void vl::Font::setSmooth | ( | bool | smooth ) |
Whether the font rendering should use linear filtering or not.
bool vl::Font::smooth | ( | ) | const [inline] |
Whether the font rendering should use linear filtering or not.
Definition at line 179 of file Font.hpp.
Referenced by vl::VectorGraphics::setFont().
void vl::Font::releaseFreeTypeData | ( | ) |
Releases the FreeType's FT_Face used by a Font.
void vl::Font::setFontManager | ( | FontManager * | fm ) | [inline] |
The FontManager associated to this Font used to acquire/release FreeType resources.
const FontManager* vl::Font::fontManager | ( | ) | const [inline] |
The FontManager associated to this Font used to acquire/release FreeType resources.
FontManager* vl::Font::fontManager | ( | ) | [inline] |
The FontManager associated to this Font used to acquire/release FreeType resources.
bool vl::Font::freeTypeLoadForceAutoHint | ( | ) | const [inline] |
void vl::Font::setFreeTypLoadForceAutoHint | ( | bool | enable ) | [inline] |
friend class FontManager [friend] |
FontManager* vl::Font::mFontManager [protected] |
String vl::Font::mFilePath [protected] |
std::map< int, ref<Glyph> > vl::Font::mGlyphMap [protected] |
FT_Face vl::Font::mFT_Face [protected] |
std::vector<char> vl::Font::mMemoryFile [protected] |
int vl::Font::mSize [protected] |
float vl::Font::mHeight [protected] |
bool vl::Font::mSmooth [protected] |
bool vl::Font::mFreeTypeLoadForceAutoHint [protected] |