|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Font selector More...
#include <cc/Font>
Public Member Functions | |
| Font () | |
| Create an unspecific font selector. | |
| Font (double size) | |
| Create font selector for given size. | |
| operator bool () const | |
| Check if this font selector is specific. | |
| Font (const String &family, double size) | |
| Create font selector for given family and size. | |
| Font (const String &family) | |
| Create font selector for given family. | |
| Font (Pitch pitch) | |
| Create font selector for given pitch. | |
| Font (Pitch pitch, double size) | |
| Create font selector for given pitch and size. | |
| String | family () const |
| Get font family. | |
| Font & | family (const String &newValue) |
| Set font family | |
| double | size () const |
| Get font size (in pixel) | |
| Font & | size (double newValue) |
| Set font size (in pixel) | |
| Slant | slant () const |
| Get slant. | |
| Font & | slant (Slant newValue) |
| Set slant | |
| Weight | weight () const |
| Get weight. | |
| Font & | weight (Weight newValue) |
| Set weight | |
| Stretch | stretch () const |
| Get stretch. | |
| Font & | stretch (Stretch newValue) |
| Set stretch | |
| Decoration | decoration () const |
| Get decoration. | |
| Font & | decoration (Decoration newValue) |
| Set decoration | |
| FontSmoothing | smoothing () const |
| Get smoothing. | |
| Font & | smoothing (FontSmoothing newValue) |
| Set smoothing | |
| OutlineHinting | outlineHinting () const |
| Get outline hinting. | |
| Font & | outlineHinting (OutlineHinting newValue) |
| Set outline hinting | |
| MetricsHinting | metricsHinting () const |
| Get metrics hinting. | |
| Font & | metricsHinting (MetricsHinting newValue) |
| Set metrics hinting | |
| Color | color () const |
| Get foreground color. | |
| Font & | color (Color newValue) |
| Set foreground color | |
| Color | paper () const |
| Get background color. | |
| Font & | paper (Color newValue) |
| Set background color | |
| String | path () const |
| Obtain the path of the font file this font would select. | |
| Font & | operator*= (double scale) |
| bool | operator== (const Font &b) const |
| Equal to operator. | |
| bool | operator!= (const Font &b) const |
| Not equal to operator. | |
Static Public Member Functions | |
| static double | defaultSize (Pitch pitch=Pitch::Variable) |
| Get default font size (in pixel) for given pitch. | |
Font selector
| Font | ( | ) |
Create an unspecific font selector.
| Font | ( | double | size | ) |
Create font selector for given size.
| operator bool | ( | ) | const |
Check if this font selector is specific.
| String family | ( | ) | const |
Get font family.
| double size | ( | ) | const |
Get font size (in pixel)
| Font & size | ( | double | newValue | ) |
Set font size (in pixel)
|
static |
Get default font size (in pixel) for given pitch.
| Slant slant | ( | ) | const |
Get slant.
| Weight weight | ( | ) | const |
Get weight.
| Stretch stretch | ( | ) | const |
Get stretch.
| Decoration decoration | ( | ) | const |
Get decoration.
| Font & decoration | ( | Decoration | newValue | ) |
Set decoration
| FontSmoothing smoothing | ( | ) | const |
Get smoothing.
| Font & smoothing | ( | FontSmoothing | newValue | ) |
Set smoothing
| OutlineHinting outlineHinting | ( | ) | const |
Get outline hinting.
| Font & outlineHinting | ( | OutlineHinting | newValue | ) |
Set outline hinting
| MetricsHinting metricsHinting | ( | ) | const |
Get metrics hinting.
| Font & metricsHinting | ( | MetricsHinting | newValue | ) |
Set metrics hinting
| Color color | ( | ) | const |
Get foreground color.
| Color paper | ( | ) | const |
Get background color.
| String path | ( | ) | const |
Obtain the path of the font file this font would select.
| bool operator== | ( | const Font & | b | ) | const |
Equal to operator.
| bool operator!= | ( | const Font & | b | ) | const |
Not equal to operator.