Empirical
|
Maintain information about an HTML font. More...
#include <Font.h>
Public Member Functions | |
Font (const Font &)=default | |
Font (Font &&)=default | |
Font (const std::string &_family="Helvetica", int _size=15, const std::string &_color="black", bool _bold=false, bool _italic=false) | |
Font (int _size, const std::string &_color="black", bool _bold=false, bool _italic=false) | |
~Font () | |
Font & | operator= (const Font &)=default |
Font & | operator= (Font &&)=default |
const std::string & | GetFamily () const |
int | GetSize () const |
const std::string & | GetColor () const |
const std::string & | GetLineColor () const |
bool | IsBold () const |
bool | IsItalic () const |
bool | IsSmallcaps () const |
bool | IsUnderlined () const |
bool | IsOverlined () const |
bool | IsStrikethrough () const |
bool | IsWavyLine () const |
bool | HasLine () const |
Font & | SetFamily (const std::string &_family) |
Font & | SetSize (int _size) |
Font & | SetColor (const std::string &_color) |
Font & | SetLineColor (const std::string &_color) |
Font & | SetBold (bool _in=true) |
Font & | SetItalic (bool _in=true) |
Font & | SetSmallcaps (bool _in=true) |
Font & | SetUnderlined (bool _in=true) |
Font & | SetOverlined (bool _in=true) |
Font & | SetStrikethrough (bool _in=true) |
Font & | SetWavyLine (bool _in=true) |
void | ConfigStyle (Style &style) const |
Take a Style object an fill it out based on this font information. More... | |
Style | AsStyle () const |
std::string | GetHTMLStart () |
std::string | GetHTMLEnd () |
bool | operator== (const Font &_in) const |
bool | operator!= (const Font &_in) const |
Protected Attributes | |
std::string | family |
Font family to use. More... | |
int | size |
Font size (in px) to use. More... | |
std::string | color |
Font color. More... | |
std::string | line_color |
Color of lines through the text (underline, linethrough, etc.) More... | |
bool | is_bold |
Is this font bold? More... | |
bool | is_italic |
Is this font itaic? More... | |
bool | is_smallcaps |
Should this test be in small caps? More... | |
bool | is_underlined |
Should this text be underlined? More... | |
bool | is_overlined |
Should this text have a line above it? More... | |
bool | is_linethrough |
Should this text have a line through it? More... | |
bool | is_wavy_line |
Should lines be made wavy? More... | |
Maintain information about an HTML font.
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Take a Style object an fill it out based on this font information.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Font color.
|
protected |
Font family to use.
|
protected |
Is this font bold?
|
protected |
Is this font itaic?
|
protected |
Should this text have a line through it?
|
protected |
Should this text have a line above it?
|
protected |
Should this test be in small caps?
|
protected |
Should this text be underlined?
|
protected |
Should lines be made wavy?
|
protected |
Color of lines through the text (underline, linethrough, etc.)
|
protected |
Font size (in px) to use.