Package com.adobe.fontengine.font.cff
Class AutoColor
- java.lang.Object
-
- com.adobe.fontengine.font.cff.AutoColor
-
- All Implemented Interfaces:
OutlineConsumer
public class AutoColor extends java.lang.Object implements OutlineConsumer
-
-
Field Summary
Fields Modifier and Type Field Description static intAC_ALLOWEDITstatic intAC_FIXWINDINGstatic intAC_GENERATEVSTEMSstatic intAC_HINTSUBstatic intZN_CHAREXTREMEstatic intZN_CHARZONEstatic intZN_HSTEMstatic intZN_VSTEMstatic intZN_ZONE
-
Constructor Summary
Constructors Constructor Description AutoColor(HintedOutlineConsumer outlineConsumer, double unitsPerEm, int flags, boolean doWriteGlyph, boolean doAligns, int[] topZones, int[] bottomZones)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcurveto(double x1, double y1, double x2, double y2)Called for a quadratic curve.voidcurveto(double x1, double y1, double x2, double y2, double x3, double y3)Called for a cubic curve.voidendchar()Called to signal the end of a glyph's outline.voidlineto(double x1, double y1)Called for a line.voidmoveto(double x0, double y0)Called to set a new currentpoint.voidnewGlyph(int glyphID, double width, int unicode)int[]reportZones()voidsetMatrix(Matrix matrix)Tells the OutlineConsumer the matrix to be applied to subsequent points in order to get to a 1 ppem size.
-
-
-
Field Detail
-
AC_ALLOWEDIT
public static final int AC_ALLOWEDIT
- See Also:
- Constant Field Values
-
AC_HINTSUB
public static final int AC_HINTSUB
- See Also:
- Constant Field Values
-
AC_FIXWINDING
public static final int AC_FIXWINDING
- See Also:
- Constant Field Values
-
AC_GENERATEVSTEMS
public static final int AC_GENERATEVSTEMS
- See Also:
- Constant Field Values
-
ZN_VSTEM
public static final int ZN_VSTEM
- See Also:
- Constant Field Values
-
ZN_HSTEM
public static final int ZN_HSTEM
- See Also:
- Constant Field Values
-
ZN_CHAREXTREME
public static final int ZN_CHAREXTREME
- See Also:
- Constant Field Values
-
ZN_CHARZONE
public static final int ZN_CHARZONE
- See Also:
- Constant Field Values
-
ZN_ZONE
public static final int ZN_ZONE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoColor
public AutoColor(HintedOutlineConsumer outlineConsumer, double unitsPerEm, int flags, boolean doWriteGlyph, boolean doAligns, int[] topZones, int[] bottomZones)
-
-
Method Detail
-
newGlyph
public void newGlyph(int glyphID, double width, int unicode)
-
reportZones
public int[] reportZones()
-
moveto
public void moveto(double x0, double y0)Description copied from interface:OutlineConsumerCalled to set a new currentpoint. If lineto or curveto was previously been called and was the most recent function called, an implied lineto should precede this move and should close the previous segment by connecting the last point in the most recent line/curve with the point that started the last segment.- Specified by:
movetoin interfaceOutlineConsumer- Parameters:
x0- the x coordinate of the new currentpointy0- the y coordinate of the new currentpoint
-
lineto
public void lineto(double x1, double y1)Description copied from interface:OutlineConsumerCalled for a line. The line goes from the current point to (x,y). After this call, the currentpoint should be x,y- Specified by:
linetoin interfaceOutlineConsumer
-
curveto
public void curveto(double x1, double y1, double x2, double y2)Description copied from interface:OutlineConsumerCalled for a quadratic curve. The control points are the current point, (x2,y2), (x3,y3). After this call, the currentpoint should be x3, y3.- Specified by:
curvetoin interfaceOutlineConsumer
-
curveto
public void curveto(double x1, double y1, double x2, double y2, double x3, double y3)Description copied from interface:OutlineConsumerCalled for a cubic curve. The control points are the current point, (x2,y2), (x3,y3), (x4,y4). After this call, the currentpoint should be x4, y4.- Specified by:
curvetoin interfaceOutlineConsumer
-
endchar
public void endchar()
Description copied from interface:OutlineConsumerCalled to signal the end of a glyph's outline. The last path will already be closed by the time this is called.- Specified by:
endcharin interfaceOutlineConsumer
-
setMatrix
public void setMatrix(Matrix matrix)
Description copied from interface:OutlineConsumerTells the OutlineConsumer the matrix to be applied to subsequent points in order to get to a 1 ppem size. It is possible for setMatrix to be called multiple times for a single glyph. Each call replaces the previous matrix. It is guaranteed that setMatrix will be called prior to any other methods.- Specified by:
setMatrixin interfaceOutlineConsumer
-
-