xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::system_fonts Class Referencefinal
Inheritance diagram for xtd::drawing::system_fonts:
xtd::static_object

Definition

Specifies the fonts used to display text in Windows display elements.

Specifies the fonts used to display text in Windows display elements.
Definition system_fonts.h:25
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
Inheritance
xtd::static_objectxtd::drawing::system_fonts
Namespace
xtd::drawing
Library
xtd.drawing
Remarks
Each property of the system_fonts class returns a xtd::drawing::font used to display text in a particular Windows display element, such as the title bar of a window. These fonts reflect the current settings in Control Panel.

Public Static Properties

static xtd::drawing::font caption_font ()
 Gets a xtd::drawing::font that is used to display text in the title bars of windows.
 
static xtd::drawing::font default_font ()
 Gets the default font that applications can use for dialog boxes and forms.
 
static xtd::drawing::font dialog_font ()
 Gets a xtd::drawing::font that applications can use for dialog boxes and forms.
 
static xtd::drawing::font icon_title_font ()
 Gets a xtd::drawing::font that is used for icon titles.
 
static xtd::drawing::font menu_font ()
 Gets a xtd::drawing::font that is used for menus.
 
static xtd::drawing::font message_box_font ()
 Gets a xtd::drawing::font that is used for message boxes.
 
static xtd::drawing::font small_caption_font ()
 Gets a xtd::drawing::font that is used to display text in the title bars of small windows, such as tool windows.
 
static xtd::drawing::font status_font ()
 Gets a xtd::drawing::font that is used to display text in the status bar.
 
static xtd::drawing::font tool_font ()
 Gets a xtd::drawing::font that is used to display text in the tool bar.
 

Public Static Methods

static const std::vector< xtd::drawing::font > & get_fonts ()
 Gets an array of system fonts.
 
static const std::vector< xtd::ustring > & get_font_names ()
 Gets an array of system font names.
 

Member Function Documentation

◆ caption_font()

static xtd::drawing::font xtd::drawing::system_fonts::caption_font ( )
static

Gets a xtd::drawing::font that is used to display text in the title bars of windows.

Returns
A xtd::drawing::font that is used to display text in the title bars of windows.

◆ default_font()

static xtd::drawing::font xtd::drawing::system_fonts::default_font ( )
static

Gets the default font that applications can use for dialog boxes and forms.

Returns
The default xtd::drawing::font of the system. The value returned will vary depending on the user's operating system and the local culture setting of their system.
Remarks
The following table describes the value returned by the xtd::drawing::system_fonts::default_font property depending on the operating system and local culture.
System and/or culture Font
Windows NT 4x, Japanese version MS UI Gothic, 9 point
Arabic Windows Tahoma, 8 point
Other operating system/culture MS Shell Dlg logical font, typically Microsoft Sans Serif, 8 point
MS Shell Dlg maps to a font set in the system registry.
If the above fonts are not installed, the default font is Tahoma, 8 point. If Tahoma, 8 point, is not installed, xtd::drawing::system_fonts::default_font returns the value of the GenericSansSerif property.
The xtd::drawing::font returned by xtd::drawing::system_fonts::default_font does not change when the user is in High Contrast mode. For a font that changes when the user is in High Contrast mode use another system font such as xtd::drawing::system_fonts::icon_title_font.

◆ dialog_font()

static xtd::drawing::font xtd::drawing::system_fonts::dialog_font ( )
static

Gets a xtd::drawing::font that applications can use for dialog boxes and forms.

Returns
A xtd::drawing::font that can be used for dialog boxes and forms, depending on the operating system and local culture setting of the system.
Remarks
If the operating system is Windows 2000 or Windows XP, the xtd::drawing::system_fonts::dialog_font property returns Tahoma, 8 point. Otherwise, xtd::drawing::system_fonts::dialog_font returns the value of the xtd::drawing::system_fonts::default_font property. The xtd::drawing::font returned by xtd::drawing::system_fonts::dialog_font does not change when the user is in High Contrast mode. For a font that changes when the user is in High Contrast mode use another system font such as xtd::drawing::system_fonts::icon_title_font.

◆ get_font_names()

static const std::vector< xtd::ustring > & xtd::drawing::system_fonts::get_font_names ( )
static

Gets an array of system font names.

◆ get_fonts()

static const std::vector< xtd::drawing::font > & xtd::drawing::system_fonts::get_fonts ( )
static

Gets an array of system fonts.

◆ icon_title_font()

static xtd::drawing::font xtd::drawing::system_fonts::icon_title_font ( )
static

Gets a xtd::drawing::font that is used for icon titles.

Returns
A xtd::drawing::font that is used for icon titles.

◆ menu_font()

static xtd::drawing::font xtd::drawing::system_fonts::menu_font ( )
static

Gets a xtd::drawing::font that is used for menus.

Returns
A xtd::drawing::font that is used for menus.

◆ message_box_font()

static xtd::drawing::font xtd::drawing::system_fonts::message_box_font ( )
static

Gets a xtd::drawing::font that is used for message boxes.

Returns
A xtd::drawing::font that is used for message boxes.

◆ small_caption_font()

static xtd::drawing::font xtd::drawing::system_fonts::small_caption_font ( )
static

Gets a xtd::drawing::font that is used to display text in the title bars of small windows, such as tool windows.

Returns
A xtd::drawing::font that is used to display text in the title bars of small windows, such as tool windows.

◆ status_font()

static xtd::drawing::font xtd::drawing::system_fonts::status_font ( )
static

Gets a xtd::drawing::font that is used to display text in the status bar.

Returns
A xtd::drawing::font that is used to display text in the status bar.

◆ tool_font()

static xtd::drawing::font xtd::drawing::system_fonts::tool_font ( )
static

Gets a xtd::drawing::font that is used to display text in the tool bar.

Returns
A xtd::drawing::font that is used to display text in the tool bar.

The documentation for this class was generated from the following file: