Tika
  1. Tika
  2. TIKA-857

Tika TrueTypeParser add metadata from Naming tables

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10
    • Fix Version/s: 1.1
    • Component/s: parser
    • Labels:
      None

      Description

      The current parsing of TrueType fonts (.ttf) parses the tables from the file, but does not assign to the metadata attributes returned to the calling application.

      The patch included is just a mapping from the NamingTables to the appropriate metadata categories.

      This allows the calling application to get things like the font name, description, author, and copyright information back as metadata attributes.

        Activity

        Hide
        Craig Stires added a comment -

        this is the patch against org.apache.tika.parser.font.TrueTypeParser.java

        Show
        Craig Stires added a comment - this is the patch against org.apache.tika.parser.font.TrueTypeParser.java
        Hide
        Nick Burch added a comment -

        Not sure that this issue should have been resolved, as the patch hasn't been applied yet. Could whoever resolved it please clarify why?

        Show
        Nick Burch added a comment - Not sure that this issue should have been resolved, as the patch hasn't been applied yet. Could whoever resolved it please clarify why?
        Hide
        Nick Burch added a comment -

        Looking at the patch, my only comment is wondering if we need to bring in the list of TTF constants ourselves. Could we not instead just use the existing constants in FontBox, such as something like the ones in org.apache.fontbox.ttf.NameRecord?

        Show
        Nick Burch added a comment - Looking at the patch, my only comment is wondering if we need to bring in the list of TTF constants ourselves. Could we not instead just use the existing constants in FontBox, such as something like the ones in org.apache.fontbox.ttf.NameRecord?

          People

          • Assignee:
            Unassigned
            Reporter:
            Craig Stires
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development