예제 #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));
 }
예제 #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));
 }
예제 #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));
 }