public abstract class FontContainer<T extends PDFontLike> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
embeddedFont
Boolean used to known if the font is embedded.
|
protected List<ValidationResult.ValidationError> |
errorBuffer
List of validation errors that occur during the font validation.
|
protected T |
font
Font-like object.
|
Constructor and Description |
---|
FontContainer(T font) |
Modifier and Type | Method and Description |
---|---|
void |
checkGlyphWidth(int code)
Check that the Width or W entry in the PDF matches the widths in the embedded font program.
|
boolean |
errorsAleadyMerged() |
List<ValidationResult.ValidationError> |
getAllErrors() |
protected abstract boolean |
hasGlyph(int code)
Checks if the embedded font contains a glyph for the given character code.
|
boolean |
isEmbeddedFont() |
boolean |
isValid() |
void |
markAsInvalid(int code,
GlyphException e) |
void |
markAsValid(int code) |
void |
notEmbedded() |
void |
push(List<ValidationResult.ValidationError> errors) |
void |
push(ValidationResult.ValidationError error) |
void |
setErrorsAlreadyMerged(boolean errorsAlreadyMerged) |
protected List<ValidationResult.ValidationError> errorBuffer
protected boolean embeddedFont
protected final T extends PDFontLike font
public FontContainer(T font)
public void push(ValidationResult.ValidationError error)
public void push(List<ValidationResult.ValidationError> errors)
public List<ValidationResult.ValidationError> getAllErrors()
public boolean isValid()
public boolean errorsAleadyMerged()
public void setErrorsAlreadyMerged(boolean errorsAlreadyMerged)
public boolean isEmbeddedFont()
public void notEmbedded()
public void checkGlyphWidth(int code) throws GlyphException
code
- character codeGlyphException
protected abstract boolean hasGlyph(int code) throws IOException
code
- character codeIOException
public final void markAsValid(int code)
public final void markAsInvalid(int code, GlyphException e)
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.