xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Static Public Member Functions | List of all members
xtd::drawing::system_fonts Class Referencefinal

#include <system_fonts.h>

Definition

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

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
Each property of the system_fonts class returns a 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.

Inherits xtd::static_object.

Static Public Member Functions

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

Member Function Documentation

◆ caption_font()

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

Gets a 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.

Remarks
The following table describes the value returned by the DefaultFont 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, DefaultFont returns the value of the GenericSansSerif property.
The Font returned by DefaultFont 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 IconTitleFont.

◆ dialog_font()

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

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

Remarks
If the operating system is Windows 2000 or Windows XP, the DialogFont property returns Tahoma, 8 point. Otherwise, DialogFont returns the value of the DefaultFont property. The Font returned by DialogFont 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 IconTitleFont.

◆ icon_title_font()

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

Gets a font that is used for icon titles.

◆ menu_font()

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

Gets a font that is used for menus.

◆ message_box_font()

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

Gets a font that is used for message boxes.

◆ small_caption_font()

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

Gets a 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 font that is used to display text in the status bar.


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