Ejemplo n.º 1
0
 /// <summary>
 /// Creates a font object from the specified type specifying the size value to
 /// use. Use this overload if you don't want to set a font size value for each
 /// label created. Define those amounts by setting their properties in the
 /// FontManager class before creating the labels.
 /// <remarks>For example, if you want to use a bigger screen resolution, you
 /// should increase the font size value stored in the [size]FontSize properties
 /// as needed and then using the related LabelSize enum value to create
 /// the labels you need.</remarks>
 /// </summary>
 /// <param name="fontName">Name of the font family.</param>
 /// <param name="labelSize">Font size.</param>
 /// <param name="weight">Bold/Demi bold, etc.</param>
 /// <param name="italic">True if the text is too be rendered in italic.</param>
 /// <returns>The font object.</returns>
 public static Font CreateFont(string fontName, LabelSize labelSize, FontWeight weight, bool italic)
 {
     return(CreateFont(StyleManager.GetLabelSize(labelSize), weight, italic));
 }
Ejemplo n.º 2
0
 public TextStyle(bool bold, bool italic, LabelSize size, Color standardColor) :
     this(bold, italic, false,
          standardColor, standardColor,
          StyleManager.GetLabelSize(size), FontManager.DefaultFontName, Alignment.Left, Alignment.Top)
 {
 }