iText 8.0.5 API
iText.Layout.Font.FontSelectorStrategy Class Referenceabstract

FontSelectorStrategy is responsible for splitting text into sub texts with one particular font. More...

Inheritance diagram for iText.Layout.Font.FontSelectorStrategy:
iText.Layout.Font.ComplexFontSelectorStrategy

Public Member Functions

virtual bool  EndOfText ()
 
abstract PdfFont  GetCurrentFont ()
 
abstract IList< Glyph NextGlyphs ()
 

Package Functions

  FontSelectorStrategy (String text, FontProvider provider, FontSet additionalFonts)
 
virtual PdfFont  GetPdfFont (FontInfo fontInfo)
  Utility method to create PdfFont. More...
 

Package Attributes

String  text
 
int  index
 
readonly FontProvider  provider
 
readonly FontSet  additionalFonts
 

Detailed Description

FontSelectorStrategy is responsible for splitting text into sub texts with one particular font.

FontSelectorStrategy is responsible for splitting text into sub texts with one particular font. NextGlyphs() will create next sub text and set current font.

Member Function Documentation

◆ GetPdfFont()

virtual PdfFont iText.Layout.Font.FontSelectorStrategy.GetPdfFont ( FontInfo  fontInfo )
inlinepackagevirtual

Utility method to create PdfFont.

Parameters
fontInfo instance of FontInfo.
Returns
cached or just created PdfFont on success, otherwise null.
See also
FontProvider.GetPdfFont(FontInfo, FontSet)