Font()

Font::Font(const SharedPtr<Font>&, FontStyle) constructor

Constructs a new instance of Font class that represents the specified existing font with the specified font style.

System::Drawing::Font::Font(const SharedPtr<Font> &prototype, FontStyle new_style)

Arguments

ParameterTypeDescription
prototypeconst SharedPtr<Font>&The existing font to create the new one from
new_styleFontStyleA font style to apply to the new font

Font::Font(const SharedPtr<FontFamily>&, float, FontStyle, GraphicsUnit, uint8_t, bool) constructor

Constructs a new instance of Font class.

System::Drawing::Font::Font(const SharedPtr<FontFamily> &family, float em_size, FontStyle style, GraphicsUnit unit=GraphicsUnit::Point, uint8_t gdi_charset=1, bool gdi_vertical_font=false)

Arguments

ParameterTypeDescription
familyconst SharedPtr<FontFamily>&The font family of the new font
em_sizefloatThe em size of the new font in the units specified by unit parameter
styleFontStyleThe style of the new font
unitGraphicsUnitThe measurement units of the new font
gdi_charsetuint8_tA GDI charset to be used for the new font
gdi_vertical_fontboolTrue if the new font is derived from a GDI vertical font

Font::Font(const SharedPtr<FontFamily>&, float, GraphicsUnit) constructor

Constructs a new instance of Font class.

System::Drawing::Font::Font(const SharedPtr<FontFamily> &family, float em_size, GraphicsUnit unit=GraphicsUnit::Point)

Arguments

ParameterTypeDescription
familyconst SharedPtr<FontFamily>&The font family of the new font
em_sizefloatThe em size of the new font in the units specified by unit parameter
unitGraphicsUnitThe measurement units of the new font

Font::Font(const String&, float, FontStyle, GraphicsUnit, uint8_t, bool) constructor

Constructs a new instance of Font class.

System::Drawing::Font::Font(const String &family_name, float em_size, FontStyle style, GraphicsUnit unit=GraphicsUnit::Point, uint8_t gdi_charset=1, bool gdi_vertical_font=false)

Arguments

ParameterTypeDescription
family_nameconst String&The name of the new font’s font family
em_sizefloatThe em size of the new font in the units specified by unit parameter
styleFontStyleThe style of the new font
unitGraphicsUnitThe measurement units of the new font
gdi_charsetuint8_tA GDI charset to be used for the new font
gdi_vertical_fontboolTrue if the new font is derived from a GDI vertical font

Font::Font(const String&, float, GraphicsUnit) constructor

Constructs a new instance of Font class.

System::Drawing::Font::Font(const String &family_name, float em_size, GraphicsUnit unit=GraphicsUnit::Point)

Arguments

ParameterTypeDescription
family_nameconst String&The name of the new font’s font family
em_sizefloatThe em size of the new font in the units specified by unit parameter
unitGraphicsUnitThe measurement units of the new font

See Also