Examples of advanceWidth()


Examples of com.google.typography.font.sfntly.table.core.HorizontalMetricsTable.advanceWidth()

   
      HorizontalMetricsTable hmtx = font.getTable(Tag.hmtx);
     
      double width = toPixels(glyph.xMax() - glyph.xMin());
      double height = toPixels(glyph.yMax() - glyph.yMin());
      double advance = toPixels(hmtx.advanceWidth(glyphIndex));
     
      SfntlyGlyph sfntlyGlyph = new SfntlyGlyph(advance, width, height, glyph);
      sfntlyGlyph.setScale(size / unitsPerEm);
      sfntlyGlyph.setYBounds(yMin, yMax);
      sfntlyGlyph.setFontSize(size);
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.