#include <Pt/Forms/StyleOptions.h>
Font option.
Inherits StyleOption.
Public Member Functions | |
| FontOption () | |
| Constructs an empty font option. | |
| bool | isSet () const |
| Returns true if any font override is set. | |
| const Gfx::Font & | value () const |
| Returns the effective font. | |
| void | setFont (const Gfx::Font &font) |
| Replaces the complete local font override. | |
| void | setSize (std::size_t size) |
| Sets the local font size override. | |
| void | setWeight (Gfx::Font::Weight weight) |
| Sets the local font weight override. | |
| void | setSlant (Gfx::Font::Slant slant) |
| Sets the local font slant override. | |
| Gfx::Font | getFont (const Gfx::Font &baseFont) const |
| Returns the local font overrides merged with baseFont. | |