Shows how to use xtd::drawing::font class.
#include <xtd/drawing/font>
#include <xtd/console>
auto main() -> int {
auto font2 =
font {
"Times New Roman", 24.0f};
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static font_family generic_monospace() noexcept
Gets a generic monospace font_family.
static font_family generic_serif() noexcept
Gets a generic serif font_family.
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
@ bold
Bold text.
Definition font_style.hpp:21
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8