Examples of xCoordinate()


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

      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);
          float fx = scale * x;
          float fy = - (scale * y) - fontSize;
          if(iPoint == 0) {
            path.moveTo(fx, fy);
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.