Cortex
10.0.0-a4
|
#include <FontLoader.h>
Public Member Functions | |
IE_CORE_DECLAREMEMBERPTR (FontLoader) | |
FontLoader (const IECore::SearchPath &searchPaths) | |
FontPtr | load (const std::string &name) |
void | clear () |
Removes any cached fonts. | |
![]() | |
IE_CORE_DECLAREMEMBERPTR (RefCounted) | |
void | addRef () const |
Add a reference to the current object. | |
void | removeRef () const |
Remove a reference from the current object. | |
RefCount | refCount () const |
Returns the current reference count. | |
Static Public Member Functions | |
static FontLoader * | defaultFontLoader () |
Additional Inherited Members | |
![]() | |
typedef size_t | RefCount |
Loads Fonts from disk, using searchpaths to find them and keeping a cache to reduce load times.
|
static |
Returns a static FontLoader instance that everyone can use. This has searchpaths set using the IECORE_FONT_PATHS environment variable.