| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| protected boolean | embeddedFont
Boolean used to known if the font is embedded. |
| protected final List | errorBuffer
List of validation errors that occur during the font validation. |
| private boolean | |
| protected final T | font
Font-like object. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkGlyphWidth(int
character code code)Check that the Width or W entry in the PDF matches the widths in the embedded font program. |
| private void | checkWidthsConsistency(int
character code code, float expected with given in the PDF file expectedWidth, float the glyph width found in the font program, a negative
value if the CID is missing from the font. foundWidth)Test if both widths are consistent. |
| public boolean | |
| public List | |
| protected abstract boolean | hasGlyph(int
character code code)Checks if the embedded font contains a glyph for the given character code. |
| private boolean | Returns: true if the CID has previously been marked as valid, false otherwisecharacter code code)Check if the given character code has already been processed. |
| public boolean | |
| public boolean | |
| public final void | |
| public final void | |
| public void | |
| public void | |
| public void | |
| public void |
| codeToDetail | back to summary |
|---|---|
| private final Map<Integer, GlyphDetail> codeToDetail | |
| embeddedFont | back to summary |
|---|---|
| protected boolean embeddedFont Boolean used to known if the font is embedded. | |
| errorBuffer | back to summary |
|---|---|
| protected final List<ValidationResult. List of validation errors that occur during the font validation. If the font is used by an object in the PDF, all these errors will be appended to the Error list of the PreflightContext. | |
| errorsAlreadyMerged | back to summary |
|---|---|
| private boolean errorsAlreadyMerged | |
| font | back to summary |
|---|---|
| protected final T font Font-like object. | |
| FontContainer | back to summary |
|---|---|
| public FontContainer(T font) | |
| checkGlyphWidth | back to summary |
|---|---|
| public void checkGlyphWidth(int code) throws GlyphException Check that the Width or W entry in the PDF matches the widths in the embedded font program.
| |
| checkWidthsConsistency | back to summary |
|---|---|
| private void checkWidthsConsistency(int code, float expectedWidth, float foundWidth) throws GlyphException Test if both widths are consistent. At the end of this method, the CID is marked as valid or invalid.
| |
| errorsAleadyMerged | back to summary |
|---|---|
| public boolean errorsAleadyMerged() | |
| getAllErrors | back to summary |
|---|---|
| public List | |
| hasGlyph | back to summary |
|---|---|
| protected abstract boolean hasGlyph(int code) throws IOException Checks if the embedded font contains a glyph for the given character code.
| |
| isAlreadyProcessed | back to summary |
|---|---|
| private boolean isAlreadyProcessed(int code) throws GlyphException Check if the given character code has already been processed.
| |
| isEmbeddedFont | back to summary |
|---|---|
| public boolean isEmbeddedFont() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() | |
| markAsInvalid | back to summary |
|---|---|
| public final void markAsInvalid(int code, GlyphException e) | |
| markAsValid | back to summary |
|---|---|
| public final void markAsValid(int code) | |
| notEmbedded | back to summary |
|---|---|
| public void notEmbedded() | |
| push | back to summary |
|---|---|
| public void push(ValidationResult. | |
| push | back to summary |
|---|---|
| public void push(List<ValidationResult. | |
| setErrorsAlreadyMerged | back to summary |
|---|---|
| public void setErrorsAlreadyMerged(boolean errorsAlreadyMerged) | |