iTextSharp.text.FontFactoryImp.GetFont C# (CSharp) Метод

GetFont() публичный Метод

Constructs a Font-object.
public GetFont ( string fontname, string encoding, float size ) : Font
fontname string the name of the font
encoding string the encoding of the font
size float the size of this font
Результат Font
        public virtual Font GetFont(string fontname, string encoding, float size)
        {
            return GetFont(fontname, encoding, defaultEmbedding, size, Font.UNDEFINED, null);
        }

Same methods

FontFactoryImp::GetFont ( string fontname ) : Font
FontFactoryImp::GetFont ( string fontname, float size ) : Font
FontFactoryImp::GetFont ( string fontname, float size, BaseColor color ) : Font
FontFactoryImp::GetFont ( string fontname, float size, int style ) : Font
FontFactoryImp::GetFont ( string fontname, float size, int style, BaseColor color ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, bool embedded ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, bool embedded, float size ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, bool embedded, float size, int style ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, bool embedded, float size, int style, BaseColor color, bool cached ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, float size, int style ) : Font
FontFactoryImp::GetFont ( string fontname, string encoding, float size, int style, BaseColor color ) : Font

Usage Example

Пример #1
0
 /// <summary>
 /// Constructs a Font-object.
 /// </summary>
 /// <param name="fontname">the name of the font</param>
 /// <param name="encoding">the encoding of the font</param>
 /// <param name="embedded">true if the font is to be embedded in the PDF</param>
 /// <param name="size">the size of this font</param>
 /// <param name="style">the style of this font</param>
 /// <param name="color">the BaseColor of this font</param>
 /// <returns>a Font object</returns>
 public static Font GetFont(string fontname, string encoding, bool embedded, float size, int style, BaseColor color)
 {
     return(fontImp.GetFont(fontname, encoding, embedded, size, style, color));
 }