xtd::drawing::font::font | ( | xtd::string | family_name, |
float | em_size, | ||
font_style | style, | ||
graphics_unit | unit | ||
) |
Initializes a new xtd::drawing::font using the specified size, style and unit.
family_name | A string representation of the font_family for the new xtd::drawing::font. |
em_size | The em-size of the new font in the units specified by the unit parameter. |
style | The font_style of the new xtd::drawing::font. |
unit | The graphics_unit of the new xtd::drawing::font. |
std::invalid_param | emSize is less than or equal to 0, evaluates to infinity, or is not a valid number. |