Class UsedGlyphsFinder.FontGlyphs
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontsubsetting.UsedGlyphsFinder.FontGlyphs
- Enclosing class:
- UsedGlyphsFinder
Stores set of font used glyphs and also auxilary data about extracted glyphs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets font glyphs that were used in the PDF document.boolean
Gets a flag marking that at least one encountered glyph for the font was not recognized and decoded.void
updateGlyphsDecodingFailedStatus
(boolean allGlyphsDecoded) Updates glyphs failed decoding status with the latest chunk decoding value.
-
Constructor Details
-
FontGlyphs
public FontGlyphs()Creates new instance.
-
-
Method Details
-
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
-