コード例 #1
0
ファイル: RAdapter.cs プロジェクト: kongres/libraries
 /// <summary>
 /// Get font instance by given font family instance, size and style.<br/>
 /// Used to support custom fonts that require explicit font family instance to be created.
 /// </summary>
 /// <param name="family">the font family instance</param>
 /// <param name="size">font size</param>
 /// <param name="style">font style</param>
 /// <returns>font instance</returns>
 internal RFont CreateFont(RFontFamily family, double size, RFontStyle style)
 {
     return(CreateFontInt(family, size, style));
 }
コード例 #2
0
ファイル: RAdapter.cs プロジェクト: kongres/libraries
 /// <summary>
 /// Get font instance by given font family instance, size and style.<br/>
 /// Used to support custom fonts that require explicit font family instance to be created.
 /// </summary>
 /// <param name="family">the font family instance</param>
 /// <param name="size">font size</param>
 /// <param name="style">font style</param>
 /// <returns>font instance</returns>
 protected abstract RFont CreateFontInt(RFontFamily family, double size, RFontStyle style);
コード例 #3
0
ファイル: RAdapter.cs プロジェクト: kongres/libraries
 /// <summary>
 /// Adds a font family to be used.
 /// </summary>
 /// <param name="fontFamily">The font family to add.</param>
 public void AddFontFamily(RFontFamily fontFamily)
 {
     this._fontsHandler.AddFontFamily(fontFamily);
 }