Class FontCheckUtil
- java.lang.Object
-
- com.itextpdf.kernel.utils.checkers.FontCheckUtil
-
public final class FontCheckUtil extends java.lang.ObjectUtility class that contains common checks used in both PDF/A and PDF/UA modules for fonts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFontCheckUtil.CharacterCheckerCharacter checker which performs check of passed symbol against the font.
-
Constructor Summary
Constructors Modifier Constructor Description privateFontCheckUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcheckGlyphsOfText(java.lang.String text, PdfFont font, FontCheckUtil.CharacterChecker checker)Checks the text by the passed checker and the font.
-
-
-
Method Detail
-
checkGlyphsOfText
public static int checkGlyphsOfText(java.lang.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:
-1if no character passes the check, or index of the first symbol which passes the check
-
-