Interface Font.Metrics

Enclosing interface:
Font

public static interface Font.Metrics
Metrics for font Depending on the font's direction, horizontal or vertical, the following tables shall be used: Vertical http://developer.apple.com/fonts/TTRefMan/RM06/Chap6vhea.html Horizontal http://developer.apple.com/fonts/TTRefMan/RM06/Chap6hhea.html
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getAscent(float pixelSize)
     
    getBBox(AABBox dest, float pixelSize, float[] tmpV3)
     
    float
    getDescent(float pixelSize)
     
    float
    getLineGap(float pixelSize)
     
    float
    getMaxExtend(float pixelSize)
     
    float
    getScale(float pixelSize)
     
  • Method Details

    • getAscent

      float getAscent(float pixelSize)
    • getDescent

      float getDescent(float pixelSize)
    • getLineGap

      float getLineGap(float pixelSize)
    • getMaxExtend

      float getMaxExtend(float pixelSize)
    • getScale

      float getScale(float pixelSize)
    • getBBox

      AABBox getBBox(AABBox dest, float pixelSize, float[] tmpV3)
      Parameters:
      dest - AABBox instance set to this metrics boundary w/ given pixelSize
      pixelSize - Use pointSize * resolution for resolution correct pixel-size, see Font.getPixelSize(float, float)
      tmpV3 - caller provided temporary 3-component vector
      Returns:
      the given and set AABBox 'dest'