[
https://issues.apache.org/jira/browse/PDFBOX-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr reopened PDFBOX-2806:
-------------------------------------
Reopening because of errors with the digitalcorpora files, like these:
with file 016468.pdf:
{code}
java.lang.UnsupportedOperationException: Unsupported kerning table version:
65536
at org.apache.fontbox.ttf.KerningTable.read(KerningTable.java:52)
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:362)
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:159)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:135)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:96)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:132)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75)
{code}
with file 038368.pdf:
{code}
java.lang.UnsupportedOperationException: Unsupported kerning sub-table format:
128
at
org.apache.fontbox.ttf.KerningSubtable.readSubtable0(KerningSubtable.java:196)
at org.apache.fontbox.ttf.KerningSubtable.read(KerningSubtable.java:68)
at org.apache.fontbox.ttf.KerningTable.read(KerningTable.java:67)
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:362)
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:159)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:135)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:96)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:132)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:75)
{code}
For the first one, I suspect that this is an apple format, see here:
https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kern.html
The table of file 016468.pdf starts with 0001 0000 which is indeed 65536, but
this would be correct for apple.
If we don't want to support the apple kerning format, then the font should be
treated as if there is no kerning table.
> The 'kern' table type is not supported.
> ---------------------------------------
>
> Key: PDFBOX-2806
> URL: https://issues.apache.org/jira/browse/PDFBOX-2806
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Glenn Adams
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
> Attachments: 016468.pdf, 038368.pdf, kern.patch.1, kern.patch.2,
> kern.patch.3
>
>
> The kerning table ('kern') is not supported by fontbox.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]