[ 
https://issues.apache.org/jira/browse/PDFBOX-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954414#comment-13954414
 ] 

John Hewson commented on PDFBOX-2005:
-------------------------------------

An encoding is a map of unique names to (possibly non-unique) character codes, 
so it can't be inverted in the general case. Building a CHARACTER_TO_NAME map 
doesn't really make sense and I don't know why PDFBox would do this. Likewise, 
the tests in TestTTFParser are trying to look up a name from a character code, 
but that's not generally possible either, for the same reason. A TTF font 
contains a unique GID for a given name (defined in the POST table) but is not 
guaranteed to contain a unique character code (defined in the CMAP table).

> JDK 1.8 build fails in TestTTFParser
> ------------------------------------
>
>                 Key: PDFBOX-2005
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2005
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>
> I installed JDK 1.8 and now the build fails because one of the tests fail:
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.278 sec <<< 
> FAILURE!
> testPostTable(org.apache.pdfbox.pdmodel.font.TestTTFParser)  Time elapsed: 
> 0.155 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<parenright[bigg]> but 
> was:<parenright[]>
> Did anybody else install JDK 1.8?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to