Esempio n. 1
0
		/// <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();
		}
Esempio n. 2
0
 /// <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();
 }
Esempio n. 3
0
		public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator)
			: base (generator, typeof (Font.IHandler))
		{
			Handler.Create(typeface, size, decoration);
		}
Esempio n. 4
0
 public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator)
     : base(generator, typeof(Font.IHandler))
 {
     Handler.Create(typeface, size, decoration);
 }
Esempio n. 5
0
 /// <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);
 }
Esempio n. 6
0
File: Font.cs Progetto: Exe0/Eto
		/// <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);
		}
Esempio n. 7
0
 /// <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);
 }
Esempio n. 8
0
		/// <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);
		}
Esempio n. 9
0
 /// <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;