xtd 0.2.0
Loading...
Searching...
No Matches
system_fonts.cpp

Shows how to use xtd::drawing::system_fonts class.

#include <xtd/drawing/system_fonts>
#include <xtd/console>
using namespace xtd;
using namespace xtd::drawing;
auto main() -> int {
console::write_line("caption_font : {}", system_fonts::caption_font());
console::write_line("default_font : {}", system_fonts::default_font());
console::write_line("dialog_font : {}", system_fonts::dialog_font());
console::write_line("icon_title_font : {}", system_fonts::icon_title_font());
console::write_line("menu_font : {}", system_fonts::menu_font());
console::write_line("message_box_font : {}", system_fonts::message_box_font());
console::write_line("small_caption_font : {}", system_fonts::small_caption_font());
console::write_line("status_font : {}", system_fonts::status_font());
}
// This code can produce the following output :
//
// caption_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// default_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// dialog_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// icon_title_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// menu_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// message_box_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// small_caption_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
// status_font : [font: name=.AppleSystemUIFont, size=9, units=3, gdi_char_set=0, gdi_vertical_font=false]
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10