Package com.adobe.fontengine.font.cff
Class Type2GlyphBBoxCalculator
- java.lang.Object
-
- com.adobe.fontengine.font.cff.Type2GlyphBBoxCalculator
-
- All Implemented Interfaces:
GlyphBBoxCalculator
public final class Type2GlyphBBoxCalculator extends Object implements GlyphBBoxCalculator
Calculates an unhinted glyph bounding box for a type2 glyph description at a specified size.Instances of this class can be reused across multiple fonts and glyphs.
Synchronization
This class is synchronized. Only one thread will be allowed into the calculateBBox method at a time.
-
-
Constructor Summary
Constructors Constructor Description Type2GlyphBBoxCalculator(Matrix finalMatrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rect
calculateBBox(FontData font, int glyphID)
Calculates the bounding box for a glyph.
-
-
-
Constructor Detail
-
Type2GlyphBBoxCalculator
public Type2GlyphBBoxCalculator(Matrix finalMatrix)
-
-
Method Detail
-
calculateBBox
public Rect calculateBBox(FontData font, int glyphID) throws InvalidFontException, UnsupportedFontException
Calculates the bounding box for a glyph.- Specified by:
calculateBBox
in interfaceGlyphBBoxCalculator
- Parameters:
font
- the font containing the glyphglyphID
- the glyph to be calculated- Returns:
- the unhinted bounding box for the glyph
- Throws:
InvalidFontException
- thrown when a glyph description is malformed.UnsupportedFontException
-
-