Class FontCheckUtil
java.lang.Object
com.itextpdf.kernel.utils.checkers.FontCheckUtil
Utility class that contains common checks used in both the PDFA and PDFUA module for fonts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Character checker which performs check of passed symbol against the font. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
checkGlyphsOfText
(String text, PdfFont font, FontCheckUtil.CharacterChecker checker) Checks the text by the passed checker and the font.
-
Constructor Details
-
FontCheckUtil
private FontCheckUtil()
-
-
Method Details
-
checkGlyphsOfText
public static int checkGlyphsOfText(String text, PdfFont font, FontCheckUtil.CharacterChecker checker) Checks the text by the passed checker and the font.- Parameters:
text
- the text to checkfont
- the font to checkchecker
- the checker which checks the text according to the font- Returns:
-1
if no character passes the check, or index of the first symbol which passes the check
-