Class LineMetrics


  • public final class LineMetrics
    extends java.lang.Object
    The line metrics of a font. These are the values recommended by the font designer for typographic ascender, typographic descender and line gap.

    Synchronization

    These objects are immutable.

    • Field Detail

      • ascender

        public final double ascender
      • descender

        public final double descender
      • linegap

        public final double linegap
    • Constructor Detail

      • LineMetrics

        public LineMetrics​(double ascender,
                           double descender,
                           double linegap)
    • Method Detail

      • toEmSpace

        public LineMetrics toEmSpace​(double unitsPerEmX,
                                     double unitsPerEmY)
      • toDesignSpace

        public LineMetrics toDesignSpace​(double unitsPerEmX,
                                         double unitsPerEmY)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object