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

◆ font() [14/15]

xtd::drawing::font::font ( xtd::string  family_name,
float  em_size 
)

Initializes a new xtd::drawing::font using the specified size and unit.

Parameters
family_nameA string representation of the font_family for the new xtd::drawing::font.
em_sizeThe em-size of the new font in the units specified by the unit parameter.
Exceptions
std::invalid_paramemSize is less than or equal to 0, evaluates to infinity, or is not a valid number.