iText 7 7.1.10 API
|
Main entry point of font selector logic. More...
Public Member Functions |
|
FontProvider (FontSet fontSet) | |
Creates a new instance of FontProvider More... |
|
FontProvider () | |
Creates a new instance of FontProvider. More... |
|
FontProvider (String defaultFontFamily) | |
Creates a new instance of FontProvider. More... |
|
FontProvider (FontSet fontSet, String defaultFontFamily) | |
Creates a new instance of FontProvider More... |
|
virtual bool | AddFont (FontProgram fontProgram, String encoding, Range unicodeRange) |
virtual bool | AddFont (FontProgram fontProgram, String encoding) |
virtual bool | AddFont (FontProgram fontProgram) |
virtual bool | AddFont (String fontPath, String encoding, Range unicodeRange) |
virtual bool | AddFont (String fontPath, String encoding) |
virtual bool | AddFont (String fontPath) |
virtual bool | AddFont (byte[] fontData, String encoding, Range unicodeRange) |
virtual bool | AddFont (byte[] fontData, String encoding) |
virtual bool | AddFont (byte[] fontData) |
virtual int | AddDirectory (String dir) |
virtual int | AddSystemFonts () |
virtual int | AddStandardPdfFonts () |
virtual FontSet | GetFontSet () |
Gets FontSet. More... |
|
virtual String | GetDefaultFontFamily () |
Gets the default font-family More... |
|
virtual String | GetDefaultEncoding (FontProgram fontProgram) |
virtual bool | GetDefaultCacheFlag () |
virtual bool | GetDefaultEmbeddingFlag () |
virtual FontSelectorStrategy | GetStrategy (String text, IList< String > fontFamilies, FontCharacteristics fc, FontSet additonalFonts) |
virtual FontSelectorStrategy | GetStrategy (String text, IList< String > fontFamilies, FontCharacteristics fc) |
virtual FontSelectorStrategy | GetStrategy (String text, IList< String > fontFamilies) |
FontSelector | GetFontSelector (IList< String > fontFamilies, FontCharacteristics fc) |
Create FontSelector or get from cache. More... |
|
FontSelector | GetFontSelector (IList< String > fontFamilies, FontCharacteristics fc, FontSet tempFonts) |
Create FontSelector or get from cache. More... |
|
virtual PdfFont | GetPdfFont (FontInfo fontInfo) |
Get from cache or create a new instance of iText.Kernel.Font.PdfFont. More... |
|
virtual PdfFont | GetPdfFont (FontInfo fontInfo, FontSet tempFonts) |
Get from cache or create a new instance of iText.Kernel.Font.PdfFont. More... |
|
virtual void | Reset () |
Resets PdfFont cache. More... |
|
Main entry point of font selector logic.
Main entry point of font selector logic. Contains reusable FontSet and collection of iText.Kernel.Font.PdfFont s. FontProvider depends on iText.Kernel.Pdf.PdfDocument due to iText.Kernel.Font.PdfFont , so it cannot be reused for different documents unless reset with Reset() or recreated with GetFontSet(). In the former case the FontSelectorCache is reused and in the latter it's reinitialised. FontProvider the only end point for creating iText.Kernel.Font.PdfFont.
It is allowed to use only one FontProvider per document. If temporary fonts per element needed, additional FontSet can be used. For more details see iText.Layout.Properties.Property.FONT_SET , GetPdfFont(FontInfo, FontSet) , <see cref="GetStrategy(System.String, System.Collections.Generic.IList{E}, FontCharacteristics, FontSet)"/ >.
Note, FontProvider does not close created iText.IO.Font.FontProgram s, because of possible conflicts with iText.IO.Font.FontCache.
|
inline |
Creates a new instance of FontProvider
fontSet | predefined set of fonts, could be null. |
|
inline |
Creates a new instance of FontProvider.
|
inline |
Creates a new instance of FontProvider.
defaultFontFamily | default font family. |
|
inline |
Creates a new instance of FontProvider
fontSet | predefined set of fonts, could be null. |
defaultFontFamily | default font family. |
|
inlinevirtual |
Gets the default font-family
|
inline |
Create FontSelector or get from cache.
fontFamilies | target font families |
fc | instance of FontCharacteristics. |
|
inline |
Create FontSelector or get from cache.
fontFamilies | target font families |
fc | instance of FontCharacteristics. |
tempFonts | set of temporary fonts. |
}
|
inlinevirtual |
Gets FontSet.
Get from cache or create a new instance of iText.Kernel.Font.PdfFont.
fontInfo | font info, to create iText.IO.Font.FontProgram and iText.Kernel.Font.PdfFont. |
|
inlinevirtual |
Get from cache or create a new instance of iText.Kernel.Font.PdfFont.
fontInfo | font info, to create iText.IO.Font.FontProgram and iText.Kernel.Font.PdfFont. |
tempFonts | Set of temporary fonts. |
|
inlinevirtual |
Resets PdfFont cache.
Resets PdfFont cache . After calling that method FontProvider can be reused with another iText.Kernel.Pdf.PdfDocument