public interface FontProgram
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCID(int cid)
Method works only for fonts where cid notation is used.
|
boolean |
containsCode(int code)
Checks if font contains character with given code.
|
boolean |
containsGlyph(String glyphName)
Checks if this font program has glyph for given glyph name.
|
ASFileStreamCloser |
getFontProgramResource() |
String |
getGlyphName(int code)
Returns glyph name for glyph with given code.
|
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 containsCID(int cid)
boolean containsGlyph(String glyphName)
glyphName - is the name of glyph.boolean isAttemptedParsing()
boolean isSuccessfulParsing()
String getGlyphName(int code)
code - is code of glyph.ASFileStreamCloser getFontProgramResource()
Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.