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 13:04:00 UTC

[jira] [Updated] (TIKA-3105) OFT format detection based on file name (extension) instead of file content

     [ https://issues.apache.org/jira/browse/TIKA-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondřej Duchoň updated TIKA-3105:
--------------------------------
    Summary: OFT format detection based on file name (extension) instead of file content  (was: OFT format detection based on file content)

> OFT format detection based on file name (extension) instead of 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ň
>            Priority: Major
>
> 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)