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 voidgetBitmap(int gid, BitmapConsumer bitmapConsumer)Return the bitmap of a glyph.voidgetOutline(int gid, OutlineConsumer outlineConsumer)Return the (hinted) outline of a glyph.voidsetDebugger(ScalerDebugger debugger)Set a debugger to receive details about the computations.voidsetScale(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, UnsupportedFontExceptionDescription copied from interface:ScalerSet the scale factor for the font, and describe the target device.- Specified by:
setScalein interfaceScaler- Throws:
InvalidFontExceptionUnsupportedFontException
-
getOutline
public void getOutline(int gid, OutlineConsumer outlineConsumer) throws UnsupportedFontException, InvalidFontExceptionDescription copied from interface:ScalerReturn the (hinted) outline of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space.- Specified by:
getOutlinein interfaceScaler- Throws:
UnsupportedFontExceptionInvalidFontException
-
getBitmap
public void getBitmap(int gid, BitmapConsumer bitmapConsumer) throws UnsupportedFontException, InvalidFontExceptionDescription copied from interface:ScalerReturn the bitmap of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space.- Specified by:
getBitmapin interfaceScaler- Throws:
UnsupportedFontExceptionInvalidFontException
-
setDebugger
public void setDebugger(ScalerDebugger debugger)
Description copied from interface:ScalerSet a debugger to receive details about the computations. This is used for development purposes only.- Specified by:
setDebuggerin interfaceScaler
-
-