Class TTScaler
java.lang.Object
com.adobe.fontengine.font.opentype.TTScaler
- All Implemented Interfaces:
Scaler
A
Scaler for OpenType fonts with TrueType outlines.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetBitmap(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 Details
-
TTScaler
public TTScaler(OpenTypeFont font, ScanConverter scanConverter) throws InvalidFontException, UnsupportedFontException
-
-
Method Details
-
setScale
public void setScale(double pointSize, double ppemX, double ppemY, double dX, double dY) throws InvalidFontException, UnsupportedFontException Description 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, InvalidFontException Description 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, InvalidFontException Description 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
Description copied from interface:ScalerSet a debugger to receive details about the computations. This is used for development purposes only.- Specified by:
setDebuggerin interfaceScaler
-