43 #include "../../Clonable.h" 44 #include "../../Text/TextTools.h"
static const short int WEIGHT_NORMAL
void setSeries(short int series)
Alias function for setWeight.
bool operator==(const Font &font) const
const short int getWeight() const
static const short int STYLE_NORMAL
Data structure for fonts.
This class allows to perform a correspondence analysis.
const short int getShape() const
Alias function for getStyle.
std::string toString() const
const short int getSeries() const
Alias function for getWeight.
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)
static std::string toString(T t)
General template method to convert to a string.
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_
const short int getStyle() const
The Clonable interface (allow an object to be cloned).
Font(const std::string &family="Default", short int style=STYLE_NORMAL, short int weight=WEIGHT_NORMAL, unsigned int size=12)
const std::string & getFamily() const
void setStyle(short int style)