| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: The width is in 1000 unit of text space, ie 333 or 777This will get the average font width for all characters. |
| public BoundingBox | |
| public PDFontDescriptor | |
| public Matrix | Returns: the font matrixReturns the font matrix, which represents the transformation from glyph space to text space. |
| public float | Returns: the height of the given charactercharacter code code)
Deprecated
Use
getBoundingBox().
Returns the height of the given character, in glyph space. |
| public String | Returns: the name of the fontReturns the name of this font, either the PostScript "BaseName" or the Type 3 "Name". |
| public Vector | Returns: position vectorcharacter code code)Returns the position vector (v), in text space, for the given character. |
| public float | Returns: the width of the given charactercharacter code code)Returns the advance width of the given character, in glyph space. |
| public float | Returns: width in glyph spacecharacter code code)Returns the width of a glyph in the embedded font file. |
| public boolean | Returns: true if the Font dictionary specifies an explicit width for the given glyphcharacter code code)Returns true if the Font dictionary specifies an explicit width for the given glyph. |
| public boolean | Returns: true if the embedded font file is damagedReturns true if the embedded font file is damaged. |
| public boolean | Returns: true if the font file is embedded in the PDFReturns true if the font file is embedded in the PDF. |
| getAverageFontWidth | back to summary |
|---|---|
| public float getAverageFontWidth() This will get the average font width for all characters.
| |
| getBoundingBox | back to summary |
|---|---|
| public BoundingBox getBoundingBox() throws IOException Returns the font's bounding box.
| |
| getFontDescriptor | back to summary |
|---|---|
| public PDFontDescriptor getFontDescriptor() Returns the font descriptor, may be null.
| |
| getFontMatrix | back to summary |
|---|---|
| public Matrix getFontMatrix() Returns the font matrix, which represents the transformation from glyph space to text space.
| |
| getHeight | back to summary |
|---|---|
| public float getHeight(int code) throws IOException
Deprecated Use Returns the height of the given character, in glyph space. This can be expensive to calculate. Results are only approximate. Warning This method is deprecated in PDFBox 2.0 because there is no meaningful value which it can return. The
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this font, either the PostScript "BaseName" or the Type 3 "Name".
| |
| getPositionVector | back to summary |
|---|---|
| public Vector getPositionVector(int code) Returns the position vector (v), in text space, for the given character. This represents the position of vertical origin relative to horizontal origin, for horizontal writing it will always be (0, 0). For vertical writing both x and y are set.
| |
| getWidth | back to summary |
|---|---|
| public float getWidth(int code) throws IOException Returns the advance width of the given character, in glyph space. If you want the visual bounds of the glyph then call getPath(..) on the appropriate PDFont subclass to retrieve the glyph outline as a GeneralPath instead. See the cyan rectangles in the DrawPrintTextLocations.java example to see this in action.
| |
| getWidthFromFont | back to summary |
|---|---|
| public float getWidthFromFont(int code) throws IOException Returns the width of a glyph in the embedded font file.
| |
| hasExplicitWidth | back to summary |
|---|---|
| public boolean hasExplicitWidth(int code) throws IOException Returns true if the Font dictionary specifies an explicit width for the given glyph. This includes Width, W but not default widths entries.
| |
| isDamaged | back to summary |
|---|---|
| public boolean isDamaged() Returns true if the embedded font file is damaged.
| |
| isEmbedded | back to summary |
|---|---|
| public boolean isEmbedded() Returns true if the font file is embedded in the PDF.
| |