Package org.apache.fontbox
Interface FontBoxFont
- All Known Implementing Classes:
CFFCIDFont
,CFFFont
,CFFType1Font
,OpenTypeFont
,TrueTypeFont
,Type1Font
public interface FontBoxFont
Common interface for all FontBox fonts.
- Author:
- John Hewson
-
Method Summary
Modifier and TypeMethodDescriptionReturns the font's bounding box in PostScript units.Returns the FontMatrix in PostScript units.getName()
The PostScript name of the font.Returns the path for the character with the given name.float
Returns the advance width for the character with the given name.boolean
Returns true if the font contains the given glyph.
-
Method Details
-
getName
The PostScript name of the font.- Throws:
IOException
-
getFontBBox
Returns the font's bounding box in PostScript units.- Throws:
IOException
-
getFontMatrix
Returns the FontMatrix in PostScript units.- Throws:
IOException
-
getPath
Returns the path for the character with the given name.- Returns:
- glyph path
- Throws:
IOException
- if the path could not be read
-
getWidth
Returns the advance width for the character with the given name.- Returns:
- glyph advance width
- Throws:
IOException
- if the path could not be read
-
hasGlyph
Returns true if the font contains the given glyph.- Parameters:
name
- PostScript glyph name- Throws:
IOException
-