41 #ifndef BPP_GRAPHICS_FONT_FONT_H
42 #define BPP_GRAPHICS_FONT_FONT_H
45 #include "../../Clonable.h"
46 #include "../../Text/TextTools.h"
The Clonable interface (allow an object to be cloned).
Data structure for fonts.
std::map< short int, std::string > weightDesc_
static const short int STYLE_NORMAL
bool operator==(const Font &font) const
const std::string & getFamily() const
std::string toString() const
static const short int STYLE_ITALIC
short int getStyle() const
void setSize(unsigned int size)
std::map< short int, std::string > styleDesc_
void setStyle(short int style)
void setShape(short int shape)
Alias function for setStyle.
void setSeries(short int series)
Alias function for setWeight.
Font * clone() const
Create a copy of this object and send a pointer to it.
Font(const std::string &family="Default", short int style=STYLE_NORMAL, short int weight=WEIGHT_NORMAL, unsigned int size=12)
void setWeight(short int weight)
const unsigned int & getSize() const
short int getWeight() const
void setFamily(const std::string &family)
static const short int WEIGHT_NORMAL
static const short int WEIGHT_BOLD
short int getSeries() const
Alias function for getWeight.
short int getShape() const
Alias function for getStyle.
std::string toString(T t)
General template method to convert to a string.