Esempio n. 1
0
 /// <summary>
 /// Gets the default font.
 /// </summary>
 /// <param name="style">The style.</param>
 /// <returns></returns>
 public static Font GetDefaultFont(FontStyle style)
 {
     return(FontFactory.GetDefaultFont(SystemFonts.DefaultFont.Size, style));
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the default font.
 /// </summary>
 /// <param name="emSize">Size of the em, in points.</param>
 /// <param name="style">The style.</param>
 /// <param name="unit">Units for the size : pixels, points, etc. Default should be point.</param>
 /// <returns></returns>
 public static Font GetDefaultFont(float emSize, FontStyle style)
 {
     return(FontFactory.GetDefaultFont(emSize, style, GraphicsUnit.Point));
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the default font.
 /// </summary>
 /// <param name="emSize">Size of the em.</param>
 /// <returns></returns>
 public static Font GetDefaultFont(float emSize)
 {
     return(FontFactory.GetDefaultFont(emSize, FontStyle.Regular));
 }