public interface FontProgram
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCode(int code)
Checks if font contains character with given ID.
|
ASFileStreamCloser |
getFontProgramResource() |
float |
getWidth(int code)
Returns width of glyph for given character code.
|
float |
getWidth(String glyphName)
Returns width of glyph for given glyph name.
|
boolean |
isAttemptedParsing() |
boolean |
isSuccessfulParsing() |
void |
parseFont()
This method does parsing of font, after it all the data needed should be
extracted.
|
float getWidth(int code)
code - is code for glyph.float getWidth(String glyphName)
glyphName - is name for glyph.void parseFont()
throws IOException
IOException - if error in font parsing occurs.boolean containsCode(int code)
code - is character code.boolean isAttemptedParsing()
boolean isSuccessfulParsing()
ASFileStreamCloser getFontProgramResource()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.