/// <summary>Creates a new instance of FontProvider</summary> /// <param name="fontSet">predefined set of fonts, could be null.</param> /// <param name="defaultFontFamily">default font family.</param> public FontProvider(FontSet fontSet, String defaultFontFamily) { this.fontSet = fontSet != null ? fontSet : new FontSet(); pdfFonts = new Dictionary <FontInfo, PdfFont>(); fontSelectorCache = new FontSelectorCache(this.fontSet); this.defaultFontFamily = defaultFontFamily; }
/// <summary>Creates a new instance of FontProvider</summary> /// <param name="fontSet">predefined set of fonts, could be null.</param> public FontProvider(FontSet fontSet) { this.fontSet = fontSet != null ? fontSet : new FontSet(); pdfFonts = new Dictionary <FontInfo, PdfFont>(); fontSelectorCache = new FontSelectorCache(this.fontSet); }