Package com.adobe.fontengine.font.cff
Class CFFScaler
- java.lang.Object
-
- com.adobe.fontengine.font.cff.CFFScaler
-
-
Constructor Summary
Constructors Constructor Description CFFScaler(CFFFont font, ScanConverter scanConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getBitmap(int gid, BitmapConsumer bitmapConsumer)
Return the bitmap of a glyph.void
getOutline(int gid, OutlineConsumer outlineConsumer)
Return the (hinted) outline of a glyph.void
setDebugger(ScalerDebugger debugger)
Set a debugger to receive details about the computations.void
setScale(double pointSize, double ppemX, double ppemY, double dX, double dY)
Set the scale factor for the font, and describe the target device.
-
-
-
Constructor Detail
-
CFFScaler
public CFFScaler(CFFFont font, ScanConverter scanConverter)
-
-
Method Detail
-
setScale
public void setScale(double pointSize, double ppemX, double ppemY, double dX, double dY) throws InvalidFontException, UnsupportedFontException
Description copied from interface:Scaler
Set the scale factor for the font, and describe the target device.- Specified by:
setScale
in interfaceScaler
- Throws:
InvalidFontException
UnsupportedFontException
-
getOutline
public void getOutline(int gid, OutlineConsumer outlineConsumer) throws UnsupportedFontException, InvalidFontException
Description copied from interface:Scaler
Return the (hinted) outline of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space.- Specified by:
getOutline
in interfaceScaler
- Throws:
UnsupportedFontException
InvalidFontException
-
getBitmap
public void getBitmap(int gid, BitmapConsumer bitmapConsumer) throws UnsupportedFontException, InvalidFontException
Description copied from interface:Scaler
Return the bitmap of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space.- Specified by:
getBitmap
in interfaceScaler
- Throws:
UnsupportedFontException
InvalidFontException
-
setDebugger
public void setDebugger(ScalerDebugger debugger)
Description copied from interface:Scaler
Set a debugger to receive details about the computations. This is used for development purposes only.- Specified by:
setDebugger
in interfaceScaler
-
-