예제 #1
0
파일: Font.cs 프로젝트: GilbertoBotaro/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>
		public Font(FontTypeface typeface, float size, FontDecoration decoration = FontDecoration.None)
		{
			Handler.Create(typeface, size, decoration);
			Initialize();
		}
예제 #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();
 }
예제 #3
0
파일: Font.cs 프로젝트: gene-l-thomas/Eto
		public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator)
			: base (generator, typeof (Font.IHandler))
		{
			Handler.Create(typeface, size, decoration);
		}
예제 #4
0
파일: Font.cs 프로젝트: daddycoding/Eto
 public Font(FontTypeface typeface, float size, FontDecoration decoration, Generator generator)
     : base(generator, typeof(Font.IHandler))
 {
     Handler.Create(typeface, size, decoration);
 }
예제 #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);
 }
예제 #6
0
파일: Font.cs 프로젝트: 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);
		}
예제 #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);
 }
예제 #8
0
파일: Font.cs 프로젝트: JohnACarruthers/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="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);
		}
예제 #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;