Package com.adobe.fontengine.font.type1
Class Type1GlyphBBoxCalculator
- java.lang.Object
-
- com.adobe.fontengine.font.type1.Type1GlyphBBoxCalculator
-
- All Implemented Interfaces:
GlyphBBoxCalculator
public final class Type1GlyphBBoxCalculator extends Object implements GlyphBBoxCalculator
computes the unhinted bounding boxes for glyphs with type1 glyph descriptions.An instance of this class can be reused with multiple glyphs in multiple fonts.
Synchronization
This class is synchronized. Only one thread will be allowed into the calculateBBox method at a time.
-
-
Constructor Summary
Constructors Constructor Description Type1GlyphBBoxCalculator(Matrix finalMatrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rect
calculateBBox(FontData font, int glyphID)
Returns the bounding box of glyphID scaled to [1000 0 0 1000]
-
-
-
Constructor Detail
-
Type1GlyphBBoxCalculator
public Type1GlyphBBoxCalculator(Matrix finalMatrix)
-
-
Method Detail
-
calculateBBox
public Rect calculateBBox(FontData font, int glyphID) throws InvalidGlyphException, UnsupportedFontException
Description copied from interface:GlyphBBoxCalculator
Returns the bounding box of glyphID scaled to [1000 0 0 1000]- Specified by:
calculateBBox
in interfaceGlyphBBoxCalculator
- Returns:
- the glyph bounding box.
- Throws:
UnsupportedFontException
InvalidGlyphException
-
-