Class FontSelectorStrategy

java.lang.Object
com.itextpdf.layout.font.FontSelectorStrategy
Direct Known Subclasses:
ComplexFontSelectorStrategy

public abstract class FontSelectorStrategy extends Object
FontSelectorStrategy is responsible for splitting text into sub texts with one particular font. nextGlyphs() will create next sub text and set current font.
  • Field Details

    • text

      protected String text
    • index

      protected int index
    • provider

      protected final FontProvider provider
    • additionalFonts

      protected final FontSet additionalFonts
  • Constructor Details

  • Method Details

    • endOfText

      public boolean endOfText()
    • getCurrentFont

      public abstract PdfFont getCurrentFont()
    • nextGlyphs

      public abstract List<Glyph> nextGlyphs()
    • getPdfFont

      protected PdfFont getPdfFont (FontInfo fontInfo)
      Utility method to create PdfFont.
      Parameters:
      fontInfo - instance of FontInfo.
      Returns:
      cached or just created PdfFont on success, otherwise null.
      See Also: