xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::drawing::font_family Class Referencefinal

Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited. More...

#include <font_family.h>

Public Member Functions

 font_family (const std::string &name)
 Initializes a new xtd::drawing::font_family with the specified name. More...
 
 font_family (text::generic_font_families generic_font_families)
 Initializes a new xtd::drawing::font_family from the specified generic font family. More...
 
 font_family (const std::string &name, const text::font_collection &font_collection)
 Initializes a new xtd::drawing::font_family in the specified font_collection with the specified name. More...
 
int32_t get_cell_ascent (font_style style) const
 Returns the cell ascent, in design units, of the font_family of the specified style. More...
 
int32_t get_cell_descent (font_style style) const
 Returns the cell descent, in design units, of the font_family of the specified style. More...
 
int32_t get_em_height (font_style style) const
 Gets the height, in font design units, of the em square for the specified style. More...
 
int32_t get_line_spacing (font_style style) const
 Returns the line spacing, in design units, of the font_family of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text. More...
 
std::string get_name (int32_t language) const
 Returns the name, in the specified language, of this font_family. More...
 
bool is_style_avaible (font_style style) const
 Indicates whether the specified font_style enumeration is available. More...
 
const std::string & name () const
 Gets the name of this font_family. More...
 
std::string to_string () const
 Converts this font_family to a human-readable string representation. More...
 

Static Public Member Functions

static std::vector< font_familyfamilies ()
 Returns an array that contains all the font_family objects associated with the current graphics context. More...
 
static font_family generic_monospace ()
 Gets a generic monospace font_family. More...
 
static font_family generic_sans_serif ()
 Gets a generic sans serif font_family. More...
 
static font_family generic_serif ()
 Gets a generic serif font_family. More...
 

Detailed Description

Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.


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