Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
font_family(const xtd::string &name)
Initializes a new xtd::drawing::font_family with the specified name.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
- Inheritance
- xtd::object → xtd::drawing::font_family
- Namespace
- xtd::drawing
- Library
- xtd.drawing
|
| bool | equals (const xtd::object &obj) const noexcept override |
| | Determines whether the specified object is equal to the current object.
|
| |
| bool | equals (const font_family &other) const noexcept override |
| | Determines whether the specified object is equal to the current object.
|
| |
| 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.
|
| |
| xtd::size | get_hash_code () const noexcept override |
| | Serves as a hash function for a particular type.
|
| |
| 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.
|
| |
|
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance.
|
| |
| template<class object_t> |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| | Creates a shallow copy of the current object.
|
| |
| virtual bool | equals (const font_family &) const noexcept=0 |
| | Indicates whether the current object is equal to another object of the same type.
|
| |
| template<class object_a_t, class 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<class object_a_t, class 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.
|
| |
◆ font_family() [1/3]
| xtd::drawing::font_family::font_family |
( |
const xtd::string & | name | ) |
|
|
explicit |
Initializes a new xtd::drawing::font_family with the specified name.
- Parameters
-
- Exceptions
-
| std::invalid_argument | name is an empty string ("") - or - name specifies a font that is not installed on the computer running the application. |
◆ font_family() [2/3]
◆ font_family() [3/3]
Initializes a new xtd::drawing::font_family in the specified font_collection with the specified name.
- Parameters
-
- Exceptions
-
| std::invalid_argument | name is an empty string ("") - or - name specifies a font that is not installed on the computer running the application - or - name specifies a font that is not a part of specified font_collection.. |
◆ name()
| const xtd::string & xtd::drawing::font_family::name |
( |
| ) |
const |
|
noexcept |
◆ families()
Returns an array that contains all the font_family objects associated with the current graphics context.
- Returns
- An array of font_family objects associated with the current graphics context.
◆ generic_monospace()
| static font_family xtd::drawing::font_family::generic_monospace |
( |
| ) |
|
|
staticnoexcept |
◆ generic_sans_serif()
| static font_family xtd::drawing::font_family::generic_sans_serif |
( |
| ) |
|
|
staticnoexcept |
◆ generic_serif()
| static font_family xtd::drawing::font_family::generic_serif |
( |
| ) |
|
|
staticnoexcept |
◆ equals() [1/2]
| bool xtd::drawing::font_family::equals |
( |
const xtd::object & | obj | ) |
const |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| obj | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
Reimplemented from xtd::object.
◆ equals() [2/2]
| bool xtd::drawing::font_family::equals |
( |
const font_family & | other | ) |
const |
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
| other | The object to compare with the current object. |
- Returns
true if the specified object is equal to the current object. otherwise, false.
◆ get_cell_ascent()
Returns the cell ascent, in design units, of the font_family of the specified style.
- Parameters
-
| style | A font_style that contains style information for the font. |
- Returns
- The cell ascent for this font_family that uses the specified font_style.
◆ get_cell_descent()
| int32 xtd::drawing::font_family::get_cell_descent |
( |
font_style | style | ) |
const |
Returns the cell descent, in design units, of the font_family of the specified style.
- Parameters
-
| style | A font_style that contains style information for the font. |
- Returns
- The cell ascent for this font_family that uses the specified font_style.
◆ get_em_height()
Gets the height, in font design units, of the em square for the specified style.
- Parameters
-
| style | A font_style that contains style information for the font. |
- Returns
- The height of the em square.
◆ get_hash_code()
| xtd::size xtd::drawing::font_family::get_hash_code |
( |
| ) |
const |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
- Returns
- A hash code for the current object.
Reimplemented from xtd::object.
◆ get_line_spacing()
| int32 xtd::drawing::font_family::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.
- Parameters
-
| style | A font_style that contains style information for the font. |
- Returns
- The distance between two consecutive lines of text.
◆ get_name()
Returns the name, in the specified language, of this font_family.
- Parameters
-
| language | The language in which the name is returned. |
- Returns
- A String that represents the name, in the specified language, of this font_family.
◆ is_style_available()
| bool xtd::drawing::font_family::is_style_available |
( |
font_style | style | ) |
const |
Indicates whether the specified font_style enumeration is available.
- Parameters
-
- Returns
true if the specified font_style is available; otherwise, false.
◆ to_string()
| xtd::string xtd::drawing::font_family::to_string |
( |
| ) |
const |
|
overridevirtualnoexcept |
The documentation for this class was generated from the following file: