Class FontSelectorStrategy

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

@Deprecated public abstract class FontSelectorStrategy extends Object
Deprecated.
replaced by IFontSelectorStrategy.
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
      Deprecated.
    • index

      protected int index
      Deprecated.
    • provider

      protected final FontProvider provider
      Deprecated.
    • additionalFonts

      protected final FontSet additionalFonts
      Deprecated.
  • Constructor Details

    • FontSelectorStrategy

      protected FontSelectorStrategy (String text, FontProvider provider, FontSet additionalFonts)
      Deprecated.
  • Method Details

    • endOfText

      public boolean endOfText()
      Deprecated.
    • getCurrentFont

      public abstract PdfFont getCurrentFont()
      Deprecated.
    • nextGlyphs

      public abstract List<Glyph> nextGlyphs()
      Deprecated.
    • getPdfFont

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