Class FontValidationContext

java.lang.Object
com.itextpdf.kernel.validation.context.FontValidationContext
All Implemented Interfaces:
IValidationContext

public class FontValidationContext extends Object implements IValidationContext
Class for font validation context.
  • Constructor Details

    • FontValidationContext

      public FontValidationContext (String text, PdfFont font)
      Instantiates a new FontValidationContext based on text and font.
      Parameters:
      text - the text
      font - the font
    • FontValidationContext

      public FontValidationContext (GlyphLine glyphLine, PdfFont font)
      Instantiates a new FontValidationContext based on glyph line and font.
      Parameters:
      glyphLine - the glyph line
      font - the font
  • Method Details

    • getText

      public String getText()
      Gets the text.
      Returns:
      the text
    • getGlyphLine

      public GlyphLine getGlyphLine()
      Gets the glyph line.
      Returns:
      the glyph line
    • getFont

      public PdfFont getFont()
      Gets the font.
      Returns:
      the font
    • getType

      public ValidationType getType()
      Description copied from interface: IValidationContext
      Gets type of the context.
      Specified by:
      getType in interface IValidationContext
      Returns:
      the type