public final class Type2GlyphBBoxCalculator extends Object implements GlyphBBoxCalculator
Instances of this class can be reused across multiple fonts and glyphs.
| Constructor and Description |
|---|
Type2GlyphBBoxCalculator(Matrix finalMatrix) |
| Modifier and Type | Method and Description |
|---|---|
Rect |
calculateBBox(FontData font,
int glyphID)
Calculates the bounding box for a glyph.
|
public Type2GlyphBBoxCalculator(Matrix finalMatrix)
public Rect calculateBBox(FontData font, int glyphID) throws InvalidFontException, UnsupportedFontException
calculateBBox in interface GlyphBBoxCalculatorfont - the font containing the glyphglyphID - the glyph to be calculatedInvalidFontException - thrown when a glyph description is malformed.UnsupportedFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved