public interface PDFontLike extends PDInheritableResource
| Modifier and Type | Method and Description |
|---|---|
float |
getAverageFontWidth()
This will get the average font width for all characters.
|
org.apache.fontbox.util.BoundingBox |
getBoundingBox()
Returns the font's bounding box.
|
PDFontDescriptor |
getFontDescriptor()
Returns the font descriptor, may be null.
|
Matrix |
getFontMatrix()
Returns the font matrix, which represents the transformation from glyph space to text space.
|
float |
getHeight(int code)
Returns the height of the given character, in glyph space.
|
String |
getName()
Returns the name of this font, either the PostScript "BaseName" or the Type 3 "Name".
|
Vector |
getPositionVector(int code)
Returns the position vector (v), in text space, for the given character.
|
float |
getWidth(int code)
Returns the advance width of the given character, in glyph space.
|
float |
getWidthFromFont(int code)
Returns the width of a glyph in the embedded font file.
|
boolean |
isDamaged()
Returns true if the embedded font file is damaged.
|
boolean |
isEmbedded()
Returns true if the font file is embedded in the PDF.
|
isInheritedString getName()
PDFontDescriptor getFontDescriptor()
Matrix getFontMatrix()
org.apache.fontbox.util.BoundingBox getBoundingBox()
throws IOException
IOExceptionVector getPositionVector(int code)
code - character codefloat getHeight(int code)
throws IOException
code - character codeIOExceptionfloat getWidth(int code)
throws IOException
code - character codeIOExceptionfloat getWidthFromFont(int code)
throws IOException
code - character codeIOException - if the font could not be readboolean isEmbedded()
boolean isDamaged()
float getAverageFontWidth()
Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.