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 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.