Examples of numberOfContours()


Examples of com.google.typography.font.sfntly.table.truetype.SimpleGlyph.numberOfContours()

  @Override
  public Shape initOutline(char c) {
    GeneralPath path = new GeneralPath();
    if(glyph instanceof SimpleGlyph) {
      SimpleGlyph simpleGlyph = (SimpleGlyph) glyph;
      int numContours = simpleGlyph.numberOfContours();
      for(int iContour=0;iContour!=numContours;++iContour) {
        int numPoints = simpleGlyph.numberOfPoints(iContour);
        for(int iPoint=0;iPoint!=numPoints;++iPoint) {
          int x = simpleGlyph.xCoordinate(iContour, iPoint);
          int y = simpleGlyph.yCoordinate(iContour, iPoint);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.