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 methodsetDebugger(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
All Methods Instance Methods Abstract 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 outlineDebugger)
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.
-
-
-
Method Detail
-
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
void setDebugger(ScalerDebugger outlineDebugger)
Set a debugger to receive details about the computations. This is used for development purposes only.
-
-