Package com.tom_roush.fontbox
Interface FontBoxFont
-
- All Known Implementing Classes:
CFFCIDFont,CFFFont,CFFType1Font,OpenTypeFont,TrueTypeFont,Type1Font
public interface FontBoxFontCommon interface for all FontBox fonts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BoundingBoxgetFontBBox()Returns the font's bounding box in PostScript units.List<Number>getFontMatrix()Returns the FontMatrix in PostScript units.StringgetName()The PostScript name of the font.android.graphics.PathgetPath(String name)Returns the path for the character with the given name.floatgetWidth(String name)Returns the advance width for the character with the given name.booleanhasGlyph(String name)Returns true if the font contains the given glyph.
-
-
-
Method Detail
-
getName
String getName() throws IOException
The PostScript name of the font.- Throws:
IOException
-
getFontBBox
BoundingBox getFontBBox() throws IOException
Returns the font's bounding box in PostScript units.- Throws:
IOException
-
getFontMatrix
List<Number> getFontMatrix() throws IOException
Returns the FontMatrix in PostScript units.- Throws:
IOException
-
getPath
android.graphics.Path getPath(String name) throws IOException
Returns the path for the character with the given name.- Returns:
- glyph path
- Throws:
IOException- if the path could not be read
-
getWidth
float getWidth(String name) throws IOException
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
boolean hasGlyph(String name) throws IOException
Returns true if the font contains the given glyph.- Parameters:
name- PostScript glyph name- Throws:
IOException
-
-