iText 7 7.1.10 API
iText.StyledXmlParser.Resolver.Font.BasicFontProvider Class Reference

A basic iText.Layout.Font.FontProvider that allows configuring in the constructor which fonts are loaded by default. More...

Inheritance diagram for iText.StyledXmlParser.Resolver.Font.BasicFontProvider:
iText.Layout.Font.FontProvider

Public Member Functions

  BasicFontProvider ()
  Creates a new BasicFontProvider instance. More...
 
  BasicFontProvider (bool registerStandardPdfFonts, bool registerSystemFonts)
  Creates a new BasicFontProvider instance. More...
 
  BasicFontProvider (bool registerStandardPdfFonts, bool registerSystemFonts, String defaultFontFamily)
  Creates a new BasicFontProvider instance. More...
 
  BasicFontProvider (FontSet fontSet, String defaultFontFamily)
  Creates a new BasicFontProvider instance. More...
 
- Public Member Functions inherited from iText.Layout.Font.FontProvider
  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...
 

Detailed Description

A basic iText.Layout.Font.FontProvider that allows configuring in the constructor which fonts are loaded by default.

Constructor & Destructor Documentation

◆ BasicFontProvider() [1/4]

iText.StyledXmlParser.Resolver.Font.BasicFontProvider.BasicFontProvider ( )
inline

Creates a new BasicFontProvider instance.

◆ BasicFontProvider() [2/4]

iText.StyledXmlParser.Resolver.Font.BasicFontProvider.BasicFontProvider ( bool  registerStandardPdfFonts,
bool  registerSystemFonts 
)
inline

Creates a new BasicFontProvider instance.

Parameters
registerStandardPdfFonts use true if you want to register the standard Type 1 fonts (can't be embedded)
registerSystemFonts use true if you want to register the system fonts (can require quite some resources)

◆ BasicFontProvider() [3/4]

iText.StyledXmlParser.Resolver.Font.BasicFontProvider.BasicFontProvider ( bool  registerStandardPdfFonts,
bool  registerSystemFonts,
String  defaultFontFamily 
)
inline

Creates a new BasicFontProvider instance.

Parameters
registerStandardPdfFonts use true if you want to register the standard Type 1 fonts (can't be embedded)
registerSystemFonts use true if you want to register the system fonts (can require quite some resources)
defaultFontFamily default font family

◆ BasicFontProvider() [4/4]

iText.StyledXmlParser.Resolver.Font.BasicFontProvider.BasicFontProvider ( FontSet  fontSet,
String  defaultFontFamily 
)
inline

Creates a new BasicFontProvider instance.

Parameters
fontSet predefined set of fonts, could be null.
defaultFontFamily default font family.