Package com.adobe.fontengine.font
Interface Scaler
- All Known Implementing Classes:
CFFScaler,TTScaler,Type1Scaler
public interface Scaler
A scaler provides access to font data dependent on a size and target device.
The method
setDebugger(com.adobe.fontengine.font.ScalerDebugger) can be called at any time. The calls to
the other methods must follow the pattern
(setScale (getOutline | getBitmap)* )*.-
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 outlineDebugger) 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.
-
Method Details
-
setScale
void setScale(double pointSize, double ppemX, double ppemY, double dX, double dY) throws InvalidFontException, UnsupportedFontException Set the scale factor for the font, and describe the target device. -
getOutline
void getOutline(int gid, OutlineConsumer outlineConsumer) throws UnsupportedFontException, InvalidFontException Return the (hinted) outline of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space. -
getBitmap
void getBitmap(int gid, BitmapConsumer bitmapConsumer) throws UnsupportedFontException, InvalidFontException Return the bitmap of a glyph. Hinting that may be provided by the font is applied. The coordinates are in device space. -
setDebugger
Set a debugger to receive details about the computations. This is used for development purposes only.
-