public class AutoColor extends Object implements OutlineConsumer
| Modifier and Type | Field and Description |
|---|---|
static int |
AC_ALLOWEDIT |
static int |
AC_FIXWINDING |
static int |
AC_GENERATEVSTEMS |
static int |
AC_HINTSUB |
static int |
ZN_CHAREXTREME |
static int |
ZN_CHARZONE |
static int |
ZN_HSTEM |
static int |
ZN_VSTEM |
static int |
ZN_ZONE |
| Constructor and Description |
|---|
AutoColor(HintedOutlineConsumer outlineConsumer,
double unitsPerEm,
int flags,
boolean doWriteGlyph,
boolean doAligns,
int[] topZones,
int[] bottomZones) |
| Modifier and Type | Method and Description |
|---|---|
void |
curveto(double x1,
double y1,
double x2,
double y2)
Called for a quadratic curve.
|
void |
curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Called for a cubic curve.
|
void |
endchar()
Called to signal the end of a glyph's outline.
|
void |
lineto(double x1,
double y1)
Called for a line.
|
void |
moveto(double x0,
double y0)
Called to set a new currentpoint.
|
void |
newGlyph(int glyphID,
double width,
int unicode) |
int[] |
reportZones() |
void |
setMatrix(Matrix matrix)
Tells the OutlineConsumer the matrix to be applied to subsequent
points in order to get to a 1 ppem size.
|
public static final int AC_ALLOWEDIT
public static final int AC_HINTSUB
public static final int AC_FIXWINDING
public static final int AC_GENERATEVSTEMS
public static final int ZN_VSTEM
public static final int ZN_HSTEM
public static final int ZN_CHAREXTREME
public static final int ZN_CHARZONE
public static final int ZN_ZONE
public AutoColor(HintedOutlineConsumer outlineConsumer, double unitsPerEm, int flags, boolean doWriteGlyph, boolean doAligns, int[] topZones, int[] bottomZones)
public void newGlyph(int glyphID,
double width,
int unicode)
public int[] reportZones()
public void moveto(double x0,
double y0)
OutlineConsumermoveto in interface OutlineConsumerx0 - the x coordinate of the new currentpointy0 - the y coordinate of the new currentpointpublic void lineto(double x1,
double y1)
OutlineConsumerx, y). After this call, the currentpoint
should be x,ylineto in interface OutlineConsumerpublic void curveto(double x1,
double y1,
double x2,
double y2)
OutlineConsumerx2, y2),
(x3, y3). After this call, the
currentpoint should be x3, y3.curveto in interface OutlineConsumerpublic void curveto(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
OutlineConsumerx2, y2),
(x3, y3),
(x4, y4). After this call, the
currentpoint should be x4, y4.curveto in interface OutlineConsumerpublic void endchar()
OutlineConsumerendchar in interface OutlineConsumerpublic void setMatrix(Matrix matrix)
OutlineConsumersetMatrix in interface OutlineConsumerCopyright © 2010 - 2020 Adobe. All Rights Reserved