bpp-core3
3.0.0
|
Data structure for fonts. More...
#include <Bpp/Graphics/Font/Font.h>
Public Member Functions | |
Font (const std::string &family="Default", short int style=STYLE_NORMAL, short int weight=WEIGHT_NORMAL, unsigned int size=12) | |
virtual | ~Font () |
Font * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
bool | operator== (const Font &font) const |
const std::string & | getFamily () const |
short int | getStyle () const |
short int | getShape () const |
Alias function for getStyle. More... | |
short int | getWeight () const |
short int | getSeries () const |
Alias function for getWeight. More... | |
const unsigned int & | getSize () const |
void | setFamily (const std::string &family) |
void | setStyle (short int style) |
void | setShape (short int shape) |
Alias function for setStyle. More... | |
void | setWeight (short int weight) |
void | setSeries (short int series) |
Alias function for setWeight. More... | |
void | setSize (unsigned int size) |
std::string | toString () const |
Static Public Attributes | |
static const short int | STYLE_NORMAL = 0 |
static const short int | STYLE_ITALIC = 1 |
static const short int | WEIGHT_NORMAL = 0 |
static const short int | WEIGHT_BOLD = 1 |
Private Member Functions | |
void | init_ () |
Private Attributes | |
std::string | family_ |
short int | style_ |
short int | weight_ |
unsigned int | size_ |
std::map< short int, std::string > | styleDesc_ |
std::map< short int, std::string > | weightDesc_ |
|
inline |
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
|
inline |
Definition at line 57 of file Font.h.
References family_.
Referenced by bpp::PgfGraphicDevice::setCurrentFont().
|
inline |
Alias function for getWeight.
Definition at line 79 of file Font.h.
References weight_.
Referenced by bpp::PgfGraphicDevice::setCurrentFont().
|
inline |
Alias function for getStyle.
Definition at line 68 of file Font.h.
References style_.
Referenced by bpp::PgfGraphicDevice::setCurrentFont().
|
inline |
Definition at line 84 of file Font.h.
References size_.
Referenced by bpp::PgfGraphicDevice::setCurrentFont(), and bpp::XFigGraphicDevice::setCurrentFont().
|
inline |
|
inline |
|
private |
Definition at line 15 of file Font.cpp.
References STYLE_ITALIC, STYLE_NORMAL, styleDesc_, WEIGHT_BOLD, WEIGHT_NORMAL, and weightDesc_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 122 of file Font.h.
References style_, bpp::TextTools::toString(), and weight_.
Referenced by bpp::AbstractFontManager< int >::getCode().
|
private |
Definition at line 25 of file Font.h.
Referenced by getFamily(), and operator==().
|
private |
|
private |
Definition at line 26 of file Font.h.
Referenced by getShape(), getStyle(), operator==(), and toString().
|
static |
Definition at line 129 of file Font.h.
Referenced by init_(), bpp::PgfGraphicDevice::PgfGraphicDevice(), bpp::SvgGraphicDevice::SvgGraphicDevice(), and bpp::XFigPostscriptFontManager::XFigPostscriptFontManager().
|
static |
Definition at line 128 of file Font.h.
Referenced by init_(), bpp::PgfGraphicDevice::PgfGraphicDevice(), bpp::SvgGraphicDevice::SvgGraphicDevice(), bpp::XFigLaTeXFontManager::XFigLaTeXFontManager(), and bpp::XFigPostscriptFontManager::XFigPostscriptFontManager().
|
mutableprivate |
|
private |
Definition at line 27 of file Font.h.
Referenced by getSeries(), getWeight(), operator==(), and toString().
|
static |
Definition at line 132 of file Font.h.
Referenced by init_(), bpp::PgfGraphicDevice::PgfGraphicDevice(), bpp::SvgGraphicDevice::SvgGraphicDevice(), and bpp::XFigPostscriptFontManager::XFigPostscriptFontManager().
|
static |
Definition at line 131 of file Font.h.
Referenced by init_(), bpp::PgfGraphicDevice::PgfGraphicDevice(), bpp::SvgGraphicDevice::SvgGraphicDevice(), bpp::XFigLaTeXFontManager::XFigLaTeXFontManager(), and bpp::XFigPostscriptFontManager::XFigPostscriptFontManager().
|
mutableprivate |