32 #ifndef FontManager_INCLUDE_ONCE 33 #define FontManager_INCLUDE_ONCE 59 Font* acquireFont(
const String& font,
int size,
bool smooth=
false);
62 const std::vector< ref<Font> >&
fonts()
const {
return mFonts; }
65 void releaseFont(
Font* font);
68 void releaseAllFonts();
78 void*
setFreeTypeLibrary(
void* ftlib) {
void* ret = mFreeTypeLibrary; mFreeTypeLibrary = ftlib;
return ret; }
The FontManager class keeps a map associating a font path, size and smoothing flag to a Font object...
const std::vector< ref< Font > > & fonts() const
Returns the list of Fonts created till now.
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
A font to be used with a Text renderable.
VLGRAPHICS_EXPORT void setDefFontManager(FontManager *)
Sets the default FontManager used by Visualization Library.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
The base class for all the reference counted objects.
#define VLGRAPHICS_EXPORT
std::vector< ref< Font > > mFonts
const void * freeTypeLibrary() const
Returns the FT_Library handle.
void * freeTypeLibrary()
Returns the FT_Library handle.
void * setFreeTypeLibrary(void *ftlib)
Sets the FT_Library to the given one and returns the former one.
VLGRAPHICS_EXPORT FontManager * defFontManager()
Returns the default FontManager used by Visualization Library.