Package com.google.typography.font.sfntly.table.core

Examples of com.google.typography.font.sfntly.table.core.HorizontalHeaderTable


  @Override
  public LineMetrics getLineMetrics(String str, FontRenderContext frc,
      AffineTransform at) {
   
    HorizontalHeaderTable hhead = font.getTable(Tag.hhea);
    int numChars = str.length();
    return new LineMetricsImpl(
        numChars,
        0, // baseline index
        new float[numChars], // baseline offsets
        0, // underline thickness,
        0, //_underlineOffset
        0, //_strikethroughThickness,
        0, //_strikethroughOffset,
        toPixels(hhead.lineGap()),
        toPixels(hhead.lineGap() + hhead.ascender() + hhead.descender()),
        toPixels(hhead.ascender()),
        toPixels(hhead.descender()),
        toPixels(0)); // _maxCharWidth
  }
View Full Code Here

TOP

Related Classes of com.google.typography.font.sfntly.table.core.HorizontalHeaderTable

Copyright © 2018 www.massapicom. 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.