You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ondřej Duchoň (Jira)" <ji...@apache.org> on 2020/06/03 12:19:00 UTC

[jira] [Created] (TIKA-3105) OFT format detection based on file content

Ondřej Duchoň created TIKA-3105:
-----------------------------------

             Summary: OFT format detection based on file content
                 Key: TIKA-3105
                 URL: https://issues.apache.org/jira/browse/TIKA-3105
             Project: Tika
          Issue Type: Bug
    Affects Versions: 1.24
            Reporter: Ondřej Duchoň


There is a problem with detecting OTF file format. Unlike TTF format, which is detected from the inside of a file (file name can be without extension .ttf) format OFT can not. As soon as the extension .otf is removed from a file name, detection will fail and content type will be evaluated as "application/octet-stream"

 

I found here simple way how to detect OTF files:

[https://docs.microsoft.com/en-us/typography/opentype/spec/otff#organization-of-an-opentype-font]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)