xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::font_family Class Referencefinal
Inheritance diagram for xtd::drawing::font_family:
xtd::object xtd::iequatable< font_family > xtd::interface xtd::equality_operators< type_t, equatable_t >

Definition

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

Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.h:38
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
Inheritance
xtd::objectxtd::drawing::font_family
Namespace
xtd::drawing
Library
xtd.drawing
Examples
font_families.cpp.

Public Constructors

 font_family (const xtd::string &name)
 Initializes a new xtd::drawing::font_family with the specified name.
 
 font_family (text::generic_font_families generic_font_families)
 Initializes a new xtd::drawing::font_family from the specified generic font family.
 
 font_family (const xtd::string &name, const text::font_collection &font_collection)
 Initializes a new xtd::drawing::font_family in the specified font_collection with the specified name.
 

Public Properties

const xtd::stringname () const noexcept
 Gets the name of this font_family.
 

Public Methods

bool equals (const font_family &value) const noexcept override
 
int32 get_cell_ascent (font_style style) const
 Returns the cell ascent, in design units, of the font_family of the specified style.
 
int32 get_cell_descent (font_style style) const
 Returns the cell descent, in design units, of the font_family of the specified style.
 
int32 get_em_height (font_style style) const noexcept
 Gets the height, in font design units, of the em square for the specified style.
 
int32 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.
 
xtd::string get_name (int32 language) const
 Returns the name, in the specified language, of this font_family.
 
bool is_style_available (font_style style) const
 Indicates whether the specified font_style enumeration is available.
 
xtd::string to_string () const noexcept override
 Converts this font_family to a human-readable string representation.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 

Public Static Properties

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

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Public Member Functions inherited from xtd::iequatable< font_family >
virtual bool equals (const font_family &) const noexcept=0
 Indicates wheth er the current object is equal to another object of the same type.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

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