Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3780

Heights of Characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6
    • PDModel
    • None

    Description

      the functions
      .getFontDescriptor().getCapHeight()
      .getFontDescriptor().getXHeight()
      .getFontDescriptor().getAscent()
      .getFontDescriptor().getDescent()
      getHeight(int code)

      do not work proper especially for embedded fonts, PDType0Font .
      Please see the attached file PDFBoxHeightTest.pdf where the line is and should be. The fonts were downloaded from http://www.schriftarten-fonts.de/fonts/11283/dejavu_sans_condensed.html

      Attachments

        1. DejaVuSansCondensed.ttf
          511 kB
          Uwe Möser
        2. DejaVuSansCondensed-Bold.ttf
          500 kB
          Uwe Möser
        3. PDFBoxHeightTest.java
          4 kB
          Uwe Möser
        4. PDFBoxHeightTest.pdf
          14 kB
          Uwe Möser

        Activity

          People

            tilman Tilman Hausherr
            Uwe Möser Uwe Möser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: