JugiMap Framework
|
The FontsLibrary class defines storage for Font objects. More...
#include <jmFont.h>
Public Member Functions | |
int | Add (Font *_font, const std::string &_name) |
Add the given font *_font* with identification name *_name* to this library. The function returns the index of the added font in the library. More... | |
Font * | Find (const std::string &_name) |
Find and returns a font with the given *_name*. More... | |
Font * | At (int _index) |
Returns a font at the given *_index*. More... | |
int | GetSize () |
Returns the number of stored fonts. More... | |
The FontsLibrary class defines storage for Font objects.
|
inline |
Add the given font *_font* with identification name *_name* to this library. The function returns the index of the added font in the library.
Font * Find | ( | const std::string & | _name | ) |
Find and returns a font with the given *_name*.
If the font is not found the function returns the first font in the library, or nullptr if library is empty.
Font * At | ( | int | _index | ) |
Returns a font at the given *_index*.
If the index is out of storage bounds the function returns the first font in the library, or nullptr if library is empty.
|
inline |
Returns the number of stored fonts.