/// <summary> /// Constructs a Font-object. /// </summary> /// <param name="attributes">the attributes of a Font object</param> /// <returns>a Font object</returns> public static Font GetFont(Properties attributes) { FontImp.DefaultEmbedding = _defaultEmbedding; FontImp.DefaultEncoding = _defaultEncoding; return(FontImp.GetFont(attributes)); }
/// <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 Color of this font</param> /// <param name="cached">true if the font comes from the cache or is added to the cache if new, false if the font is always created new</param> /// <returns>a Font object</returns> public static Font GetFont(string fontname, string encoding, bool embedded, float size, int style, BaseColor color, bool cached) { return(FontImp.GetFont(fontname, encoding, embedded, size, style, color, cached)); }