xtd - Reference Guide 0.2.0
xtd::drawing::system_fonts Class Referencefinal

#include <system_fonts.h>

## Definition

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

class drawing_export_ system_fonts final static_
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.

## Properties

static xtd::drawing::font caption_font ()
Gets a xtd::drawing::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 xtd::drawing::font that applications can use for dialog boxes and forms. More...

static xtd::drawing::font icon_title_font ()
Gets a xtd::drawing::font that is used for icon titles. More...

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

static xtd::drawing::font message_box_font ()
Gets a xtd::drawing::font that is used for message boxes. More...

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. More...

static xtd::drawing::font status_font ()
Gets a xtd::drawing::font that is used to display text in the status bar. More...

static xtd::drawing::font tool_font ()
Gets a xtd::drawing::font that is used to display text in the tool bar. More...

## ◆ 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.

## ◆ 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.

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: