<PackageReference Include="System.Drawing.Common" Version="10.0.1" />

System.Drawing.Font

Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
namespace System.Drawing { public sealed class Font : MarshalByRefObject, ICloneable, IDisposable, ISerializable { public bool Bold { get; } public FontFamily FontFamily { get; } public byte GdiCharSet { get; } public bool GdiVerticalFont { get; } public int Height { get; } public bool IsSystemFont { get; } public bool Italic { get; } public string Name { get; } public string OriginalFontName { get; } public float Size { get; } public float SizeInPoints { get; } public bool Strikeout { get; } public FontStyle Style { get; } public string SystemFontName { get; } public bool Underline { get; } public GraphicsUnit Unit { get; } public Font(Font prototype, FontStyle newStyle); public Font(FontFamily family, float emSize); public Font(FontFamily family, float emSize, FontStyle style); public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit); public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet); public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont); public Font(FontFamily family, float emSize, GraphicsUnit unit); public Font(string familyName, float emSize); public Font(string familyName, float emSize, FontStyle style); public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit); public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet); public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont); public Font(string familyName, float emSize, GraphicsUnit unit); public object Clone(); public void Dispose(); public static Font FromHdc(IntPtr hdc); public static Font FromHfont(IntPtr hfont); public static Font FromLogFont(object lf); public static Font FromLogFont(object lf, IntPtr hdc); public float GetHeight(); public float GetHeight(Graphics graphics); public float GetHeight(float dpi); public IntPtr ToHfont(); public void ToLogFont(object logFont); public void ToLogFont(object logFont, Graphics graphics); } }