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