xtd.drawing - Reference Guide  0.1.0
Modern c++17 library providing access to GDI+ basic graphics functionality. More advanced functionality is provided in the drawing 2D, imaging, and text.
xtd::drawing::text Namespace Reference

The xtd::drawing::text namespace provides advanced GDI+ typography functionality. More...

Classes

class  font_collection
 Provides a base class for installed and private font collections. More...
 
class  installed_font_collection
 Represents the fonts installed on the system. More...
 
class  private_font_collection
 Provides a collection of font families built from font files that are provided by the client application. More...
 

Enumerations

enum  generic_font_families { generic_font_families::serif = 0, generic_font_families::sans_serif = 1, generic_font_families::monospace = 2 }
 Specifies a generic font_family object. More...
 
enum  hotkey_prefix { hotkey_prefix::none = 0, hotkey_prefix::show = 1, hotkey_prefix::hide = 2 }
 Specifies the type of display for hot-key prefixes that relate to text. More...
 
enum  text_rendering_hint {
  text_rendering_hint::system_default = 0, text_rendering_hint::single_bit_per_pixel_grid_fit = 1, text_rendering_hint::single_bit_per_pixel = 2, text_rendering_hint::anti_alias_grid_fit = 3,
  text_rendering_hint::anti_alias = 4, text_rendering_hint::clear_type_grid_fit = 5
}
 Specifies the quality of text rendering. More...
 

Detailed Description

The xtd::drawing::text namespace provides advanced GDI+ typography functionality.

Enumeration Type Documentation

§ generic_font_families

Specifies a generic font_family object.

Library
xtd.drawing
Enumerator
serif 

A generic Serif font_family object.

sans_serif 

A generic Sans Serif font_family object.

monospace 

A generic Monospace font_family object.

§ hotkey_prefix

Specifies the type of display for hot-key prefixes that relate to text.

Remarks
A hot-key prefix allows you to use a keyboard combination (usually CTRL+HotKey or ALT+HotKey) to access functionality represented by text displayed on the screen.
Enumerator
none 

No hot-key prefix.

show 

Display the hot-key prefix.

hide 

Do not display the hot-key prefix.

§ text_rendering_hint

Specifies the quality of text rendering.

Remarks
The quality ranges from text (fastest performance, but lowest quality) to antialiased text (better quality, but slower performance) to ClearType text (best quality on an LCD display).
Enumerator
system_default 

Each character is drawn using its glyph bitmap, with the system default rendering hint. The text will be drawn using whatever font-smoothing settings the user has selected for the system.

single_bit_per_pixel_grid_fit 

Each character is drawn using its glyph bitmap. Hinting is used to improve character appearance on stems and curvature.

single_bit_per_pixel 

Each character is drawn using its glyph bitmap. Hinting is not used.

anti_alias_grid_fit 

Each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to antialiasing, but at a higher performance cost.

anti_alias 

Each character is drawn using its antialiased glyph bitmap without hinting. Better quality due to antialiasing. Stem width differences may be noticeable because hinting is turned off.

clear_type_grid_fit 

Each character is drawn using its glyph ClearType bitmap with hinting. The highest quality setting. Used to take advantage of ClearType font features.