public final class StemFinder extends Object implements OutlineConsumer
| Constructor and Description |
|---|
StemFinder(boolean findVerticalStem,
boolean hintsForFauxing) |
| Modifier and Type | Method and Description |
|---|---|
void |
curveto(double x1,
double y1,
double x2,
double y2)
Called for a quadratic curve.
|
void |
curveto(double x2,
double y2,
double x3,
double y3,
double x4,
double y4)
Called for a cubic curve.
|
void |
endchar()
Called to signal the end of a glyph's outline.
|
double |
getComputedStem(double advanceWidth,
double italicAngle) |
void |
lineto(double x,
double y)
Called for a line.
|
void |
moveto(double x,
double y)
Called to set a new currentpoint.
|
void |
reset()
Reset this object so it can be used to compute another stem.
|
void |
setMatrix(Matrix newMatrix)
Tells the OutlineConsumer the matrix to be applied to subsequent
points in order to get to a 1 ppem size.
|
public StemFinder(boolean findVerticalStem,
boolean hintsForFauxing)
findVerticalStem - The stem finder should look for a vertical stem.hintsForFauxing - The stem being sought will be used in fauxing.public void reset()
public void setMatrix(Matrix newMatrix)
OutlineConsumersetMatrix in interface OutlineConsumerpublic void moveto(double x,
double y)
OutlineConsumermoveto in interface OutlineConsumerx - the x coordinate of the new currentpointy - the y coordinate of the new currentpointpublic void lineto(double x,
double y)
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 x2,
double y2,
double x3,
double y3,
double x4,
double y4)
OutlineConsumerx2, y2),
(x3, y3),
(x4, y4). After this call, the
currentpoint should be x4, y4.curveto in interface OutlineConsumerpublic double getComputedStem(double advanceWidth,
double italicAngle)
public void endchar()
OutlineConsumerendchar in interface OutlineConsumerCopyright © 2010 - 2020 Adobe. All Rights Reserved