{
int count = glyph.getPointCount();
int offset = 0;
boolean newContour = true;
ArrayList<double[]> aSegments = new ArrayList<double[]>(count);
Point lastMove = null;
while (offset < count - 1)
{
Point point = glyph.getPoint(offset);
if (point.endOfContour)
{
newContour = true;
offset++;
continue;
}
Point point_plus1 = glyph.getPoint((offset + 1));
Point point_plus2;
//Implicit close, using the last move point as the next point
if (point_plus1.endOfContour)
point_plus2 = lastMove;
else if (offset <= count - 3)