Package com.adobe.fontengine.font.type1
Class Type1GlyphBBoxCalculator
java.lang.Object
com.adobe.fontengine.font.type1.Type1GlyphBBoxCalculator
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptioncalculateBBox(FontData font, int glyphID) Returns the bounding box of glyphID scaled to [1000 0 0 1000]
-
Constructor Details
-
Type1GlyphBBoxCalculator
-
-
Method Details
-
calculateBBox
public Rect calculateBBox(FontData font, int glyphID) throws InvalidGlyphException, UnsupportedFontException Description copied from interface:GlyphBBoxCalculatorReturns the bounding box of glyphID scaled to [1000 0 0 1000]- Specified by:
calculateBBoxin interfaceGlyphBBoxCalculator- Parameters:
font-glyphID-- Returns:
- the glyph bounding box.
- Throws:
UnsupportedFontExceptionInvalidGlyphException
-