/// <summary> /// Gets the specified font. /// </summary> /// <param name="family">The font's family</param> /// <param name="emSize">Size of the font, in the provided unit.</param> /// <param name="style">The font's style.</param> /// <param name="unit">The unit to use for the given size (points, pixels, etc)</param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">family</exception> public static Font GetFont(FontFamily family, float emSize, FontStyle style = FontStyle.Regular, GraphicsUnit unit = GraphicsUnit.Point) { family.ThrowIfNull(nameof(family)); return GetFont(family.Name, emSize, style, unit); }