xtd 0.2.0
Loading...
Searching...
No Matches

◆ font_family() [3/3]

xtd::drawing::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.

Parameters
nameThe name of the new xtd::drawing::font_family.
font_collectionThe FontCollection that contains this FontFamily.
Exceptions
std::invalid_argumentname 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..