OutlineShape from
Glyphs.
http://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html
http://walon.org/pub/ttf/ttf_glyphs.htm
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addShapeLineTo(final OutlineShape shape, final Vertex.
|
| private static void | addShapeMoveTo(final OutlineShape shape, final Vertex.
|
| private static void | addShapeQuadTo(final OutlineShape shape, final Vertex.
|
| private static void | addShapeQuadTo(final OutlineShape shape, final Vertex.
|
| public static OutlineShape | buildShape(final char symbol, final OTGlyph glyph, final Vertex.
private static void addShapeCubicTo(final OutlineShape shape, Factory<? |
| private static void | buildShapeImpl(final OutlineShape shape, final char symbol, final OTGlyph glyph, final Vertex.
private static void buildShapeImpl02(final OutlineShape shape, char symbol, OTGlyph glyph, Factory<? |
| private static float |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| TypecastRenderer | back to summary |
|---|---|
| public TypecastRenderer() | |
| addShapeLineTo | back to summary |
|---|---|
| private static void addShapeLineTo(final OutlineShape shape, final Vertex. | |
| addShapeMoveTo | back to summary |
|---|---|
| private static void addShapeMoveTo(final OutlineShape shape, final Vertex. | |
| addShapeQuadTo | back to summary |
|---|---|
| private static void addShapeQuadTo(final OutlineShape shape, final Vertex. | |
| addShapeQuadTo | back to summary |
|---|---|
| private static void addShapeQuadTo(final OutlineShape shape, final Vertex. | |
| buildShape | back to summary |
|---|---|
| public static OutlineShape buildShape(final char symbol, final OTGlyph glyph, final Vertex. private static void addShapeCubicTo(final OutlineShape shape, Factory<? extends Vertex> vertexFactory, Point p1, Point p2, Point p3) { shape.addVertex(0, vertexFactory.create(p1.x, p1.y, 0, p1.onCurve)); shape.addVertex(0, vertexFactory.create(p2.x, p2.y, 0, p2.onCurve)); shape.addVertex(0, vertexFactory.create(p3.x, p3.y, 0, p3.onCurve)); } | |
| buildShapeImpl | back to summary |
|---|---|
| private static void buildShapeImpl(final OutlineShape shape, final char symbol, final OTGlyph glyph, final Vertex. private static void buildShapeImpl02(final OutlineShape shape, char symbol, OTGlyph glyph, Factory<? extends Vertex> vertexFactory) { // Iterate through all of the points in the glyph. Each time we find a // contour end point, add the point range to the path. int startIndex = 0; int count = 0; for (int i = 0; i < glyph.getPointCount(); i++) { count++; if ( glyph.getPoint(i).endOfContour ) { for(int j=0; j<count; j++) { final Point p = glyph.getPoint(startIndex + j); shape.addVertex(0, vertexFactory.create(p.x, p.y, 0, p.onCurve)); } shape.closeLastOutline(false); startIndex = i + 1; count = 0; } } } | |
| midValue | back to summary |
|---|---|
| private static float midValue(final float a, final float b) | |