/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="decoration">Decorations to apply to the font</param> public Font(FontTypeface typeface, float size, FontDecoration decoration = FontDecoration.None) { Handler.Create(typeface, size, decoration); Initialize(); }
/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="decoration">Decorations to apply to the font</param> public Font(FontTypeface typeface, float size, FontDecoration decoration = FontDecoration.None) { Handler.Create(typeface, size, decoration); Initialize(); }
public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator) : base (generator, typeof (Font.IHandler)) { Handler.Create(typeface, size, decoration); }
public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator) : base(generator, typeof(Font.IHandler)) { Handler.Create(typeface, size, decoration); }
/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="decoration">Decorations to apply to the font</param> /// <param name="generator">Generator to create the font handler</param> public Font(FontTypeface typeface, float size, FontDecoration decoration = FontDecoration.None, Generator generator = null) : base(generator, typeof(IFont)) { Handler.Create(typeface, size, decoration); }
/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="decoration">Decorations to apply to the font</param> /// <param name="generator">Generator to create the font handler</param> public Font(FontTypeface typeface, float size, FontDecoration decoration = FontDecoration.None, Generator generator = null) : base (generator, typeof (IFont)) { Handler.Create(typeface, size, decoration); }
/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="generator">Generator to create the font handler</param> public Font(FontTypeface typeface, float size, Generator generator = null) : base(generator, typeof(IFont)) { Handler.Create(typeface, size); }
/// <summary> /// Initializes a new instance of the Font class with the specified <paramref name="typeface"/> and <paramref name="size"/> /// </summary> /// <param name="typeface">Typeface of the font to create</param> /// <param name="size">Size of the font in points</param> /// <param name="generator">Generator to create the font handler</param> public Font (FontTypeface typeface, float size, Generator generator = null) : base (generator, typeof (IFont)) { Handler.Create (typeface, size); }
/// <summary> /// Tests this instance for equality with another font typeface /// </summary> /// <remarks> /// Font typefaces are considered equal if the names are the same /// </remarks> /// <param name="other">Other font typeface to test</param> /// <returns>True if the typefaces are equal, false otherwise</returns> public bool Equals(FontTypeface other) => other == this;