コード例 #1
0
ファイル: FontTypeface.cs プロジェクト: alexandrebaker/Eto
		/// <summary>
		/// Initializes a new instance of a FontTypeface class with the specified handler
		/// </summary>
		/// <remarks>
		/// This allows the platform handlers to create instances of the FontTypeface class
		/// with a specific handler. It should not be called by user code.
		/// </remarks>
		/// <param name="family">Family this typeface is part of</param>
		/// <param name="handler">Handler to use for this typeface instance</param>
		public FontTypeface (FontFamily family, IFontTypeface handler)
			: base(family.Generator, handler)
		{
			this.Family = family;
		}
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of a FontTypeface class with the specified handler
 /// </summary>
 /// <remarks>
 /// This allows the platform handlers to create instances of the FontTypeface class
 /// with a specific handler. It should not be called by user code.
 /// </remarks>
 /// <param name="family">Family this typeface is part of</param>
 /// <param name="handler">Handler to use for this typeface instance</param>
 public FontTypeface(FontFamily family, IFontTypeface handler)
     : base(family.Generator, handler)
 {
     this.Family = family;
 }