Initializes a new xtd::drawing::font using the specified size, style, unit, and character set.
- Parameters
-
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. |
gdi_char_set | A byte that specifies a GDI character set to use for this font. |
- Exceptions
-
std::invalid_param | emSize is less than or equal to 0, evaluates to infinity, or is not a valid number. |