12#include "../drawing_export.h"
22 class font_collection;
54 bool operator==(
const font_family& value)
const {
return data_->name_ == value.data_->name_;}
55 bool operator!=(
const font_family& value)
const {
return !operator==(value);}
111 xtd::ustring to_string() const noexcept
override {
return ustring::format(
"[{}: name={}]", ustring::class_name(*
this), data_->name_);}
121 intptr_t handle_ = 0;
124 std::shared_ptr<data> data_ = std::make_shared<data>();
Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.h:32
static font_family generic_sans_serif()
Gets a generic sans serif font_family.
Definition font_family.h:68
int32_t get_cell_ascent(font_style style) const
Returns the cell ascent, in design units, of the font_family of the specified style.
const xtd::ustring & name() const
Gets the name of this font_family.
Definition font_family.h:76
font_family(const xtd::ustring &name, const text::font_collection &font_collection)
Initializes a new xtd::drawing::font_family in the specified font_collection with the specified name.
int32_t get_cell_descent(font_style style) const
Returns the cell descent, in design units, of the font_family of the specified style.
static std::vector< font_family > families()
Returns an array that contains all the font_family objects associated with the current graphics conte...
static font_family generic_serif()
Gets a generic serif font_family.
Definition font_family.h:72
static font_family generic_monospace()
Gets a generic monospace font_family.
Definition font_family.h:64
font_family(const xtd::ustring &name)
Initializes a new xtd::drawing::font_family with the specified name.
int32_t get_line_spacing(font_style style) const
Returns the line spacing, in design units, of the font_family of the specified style....
int32_t get_em_height(font_style style) const
Gets the height, in font design units, of the em square for the specified style.
font_family(text::generic_font_families generic_font_families)
Initializes a new xtd::drawing::font_family from the specified generic font family.
bool is_style_available(font_style style) const
Indicates whether the specified font_style enumeration is available.
xtd::ustring to_string() const noexcept override
Converts this font_family to a human-readable string representation.
Definition font_family.h:111
xtd::ustring get_name(int32_t language) const
Returns the name, in the specified language, of this font_family.
Provides a base class for installed and private font collections.
Definition font_collection.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
Contains xtd::drawing::font_style enum class.
Contains xtd::drawing::text::generic_font_families enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition font_style.h:17
generic_font_families
Specifies a generic font_family object.
Definition generic_font_families.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.
Contains xtd::ustring class.