Class UsedGlyphsFinder.FontGlyphs

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontsubsetting.UsedGlyphsFinder.FontGlyphs
Enclosing class:
UsedGlyphsFinder

public static final class UsedGlyphsFinder.FontGlyphs extends Object
Stores set of font used glyphs and also auxilary data about extracted glyphs.
  • Constructor Details

    • FontGlyphs

      public FontGlyphs()
      Creates new instance.
  • Method Details

    • getGlyphs

      public Set getGlyphs()
      Gets font glyphs that were used in the PDF document.
      Returns:
      a set of used font glyphs
    • isAnyGlyphsDecodingFailed

      public boolean isAnyGlyphsDecodingFailed()
      Gets a flag marking that at least one encountered glyph for the font was not recognized and decoded.
      Returns:
      false if all glyphs for the font were successfully decoded, true otherwise
    • updateGlyphsDecodingFailedStatus

      public void updateGlyphsDecodingFailedStatus (boolean allGlyphsDecoded)
      Updates glyphs failed decoding status with the latest chunk decoding value.
      Parameters:
      allGlyphsDecoded - true if current glyphs chunk were successfully decoded, false otherwise