Class TextMetrics


  • public class TextMetrics
    extends Object
    • Constructor Detail

      • TextMetrics

        public TextMetrics​(org.apache.pdfbox.text.TextPosition tp)
    • Method Detail

      • append

        public void append​(org.apache.pdfbox.text.TextPosition tp)
      • getX

        public float getX()
      • getTop

        public float getTop()
      • getBottom

        public float getBottom()
      • getBaseline

        public float getBaseline()
      • getAscent

        public float getAscent()
      • getDescent

        public float getDescent()
      • getBoundingBoxDescent

        public float getBoundingBoxDescent()
      • getBoundingBoxAscent

        public float getBoundingBoxAscent()
      • getBoundingBoxDescent

        public static float getBoundingBoxDescent​(org.apache.pdfbox.pdmodel.font.PDFont font,
                                                  float fontSize)
      • getBoundingBoxAscent

        public static float getBoundingBoxAscent​(org.apache.pdfbox.pdmodel.font.PDFont font,
                                                 float fontSize)
      • getWidth

        public float getWidth()
      • getHeight

        public float getHeight()
      • getPointSize

        public float getPointSize()