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

Petr Slaby commented on PDFBOX-4038:
------------------------------------

{quote}
But I doubt that the result values must have an increasing order 
{quote}

You are right, that was my misinterpretation of the information I got. The 
Type1 specification says exactly this:

The value associated with BlueValues is an array containing an even number of 
integers taken in pairs, and which follow a small
number of rules:
- The first integer in each pair is less than or equal to the second integer in 
that pair.
...

But that is relatively unimportant in this context. The important information 
is the delta encoding of the integer array in CFF which must be taken into 
account by the CFFParser. 

Thanks.


> CFF font Blue values and other delta encoded lists read incorrectly
> -------------------------------------------------------------------
>
>                 Key: PDFBOX-4038
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4038
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.8
>            Reporter: Petr Slaby
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.9, 3.0.0 PDFBox
>
>         Attachments: BlueValuesTest.java, CFFParser.java.patch
>
>
> The attached test compares the values retrieved via CFFParser from an 
> OpenType font with the expected values as seen in FontForge (go to 
> Element->Font Info->PS Private). 
> The font NeoSans Black.otf can be found at https://www.wfonts.com/font/neosans
> The CFF font specification explaining the encoding of the entries which are 
> incorrectly parsed by FontBox CFFParser can be found here 
> https://typekit.files.wordpress.com/2013/05/5176.cff.pdf
> We use FontBox to read the font when we need to embed it into an PDF which we 
> produce via our Apache FOP based software. Adobe validator complains about 
> incorrect "Blue values" sorting then.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to