You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2020/04/10 11:22:00 UTC

[jira] [Created] (PDFBOX-4810) Improve CodespaceRange to be in line with the spec

Andreas Lehmkühler created PDFBOX-4810:
------------------------------------------

             Summary: Improve CodespaceRange to be in line with the spec
                 Key: PDFBOX-4810
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4810
             Project: PDFBox
          Issue Type: Improvement
          Components: FontBox
    Affects Versions: 2.0.19, 3.0.0 PDFBox
            Reporter: Andreas Lehmkühler
            Assignee: Andreas Lehmkühler
             Fix For: 2.0.20, 3.0.0 PDFBox


While working on PDFBOX-4749 I've realized that the implementation of a CodespaceRange from a CMap isn't correct.

For one byte ranges startBytes and endBytes define a linear range of values. Double byte values define a rectangular range +not+ a linear range. 
Examples:
* <00> <20> defines a linear range from 0x00 up to 0x20
* <8140> to <9FFC> defines a rectangular range. The high byte has to be within 0x81 and 0x9F and the low byte has to be within 0x40 and 0xFC




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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org