[jira] [Updated] (FOP-2697) Acrobat Reader error with Adobe Kozuka Mincho font
[ https://issues.apache.org/jira/browse/FOP-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kazuyuki Murakami updated FOP-2697: --- Attachment: test2.fo > Acrobat Reader error with Adobe Kozuka Mincho font > -- > > Key: FOP-2697 > URL: https://issues.apache.org/jira/browse/FOP-2697 > Project: FOP > Issue Type: Bug > Components: font/opentype >Affects Versions: trunk > Environment: Operating Systems: Windows > JDK: 1.8 > OpenFont: Adobe Kozuka Mincho >Reporter: Kazuyuki Murakami >Assignee: simon steiner > Attachments: fop.xconf, test2.fo, test.fo, > test_KozukaMinchoPr6NR.pdf, test_NotoSansCJKjp.pdf > > > The Kozuka Mincho Pr6N R font cannot be embedded into PDF document. > How to repeat > 1. Get FOP from trunk@1784735 > 2. Install Adobe Acrobat Reader DC Japanese language version. > 3. Get Font from C:\Program Files (x86)\Adobe\Acrobat > DC\Resource\CIDFont\KozMinPr6N-Regular.otf > 4. Use my config file and generate the PDF, there is no error reported. > 5. Open the PDF file in Acro-Reader, it will report the "cannot extract the > embedded font" error. > Notes > 1. When use the Noto Sans CJK JP and Kozuka Gothic Pr6N M fonts, there is no > problem. > 2. But NfMotoya Cedar Std W1 (Free Font, Regisration needed) and Morisawa > A-OTF Shin Go Pro R are failed. > 3. Read embedded stream by CFFParser, test_NotoSansCJKjp.pdf is ok, > test_KozukaMinchoPr6NR.pdf is failed at reading CharStringIndex. > java.io.EOFException > at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151) > at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55) > at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172) > at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193) > at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:456) > at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141) > CFFParser#parseFont() > // charstrings index > DictData.Entry charStringsEntry = topDict.getEntry("CharStrings"); > int charStringsOffset = charStringsEntry.getNumber(0).intValue(); // THIS > VALUE IS NEGATIVE!! > input.setPosition(charStringsOffset); > byte[][] charStringsIndex = readIndexData(input); -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (FOP-2697) Acrobat Reader error with Adobe Kozuka Mincho font
[ https://issues.apache.org/jira/browse/FOP-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15902127#comment-15902127 ] Kazuyuki Murakami commented on FOP-2697: Thank you for fixing quickly. Even if increase the number of characters to output, it will not work properly. When I tried it with test2.fo, I got the same error as before. > Acrobat Reader error with Adobe Kozuka Mincho font > -- > > Key: FOP-2697 > URL: https://issues.apache.org/jira/browse/FOP-2697 > Project: FOP > Issue Type: Bug > Components: font/opentype >Affects Versions: trunk > Environment: Operating Systems: Windows > JDK: 1.8 > OpenFont: Adobe Kozuka Mincho >Reporter: Kazuyuki Murakami >Assignee: simon steiner > Attachments: fop.xconf, test.fo, test_KozukaMinchoPr6NR.pdf, > test_NotoSansCJKjp.pdf > > > The Kozuka Mincho Pr6N R font cannot be embedded into PDF document. > How to repeat > 1. Get FOP from trunk@1784735 > 2. Install Adobe Acrobat Reader DC Japanese language version. > 3. Get Font from C:\Program Files (x86)\Adobe\Acrobat > DC\Resource\CIDFont\KozMinPr6N-Regular.otf > 4. Use my config file and generate the PDF, there is no error reported. > 5. Open the PDF file in Acro-Reader, it will report the "cannot extract the > embedded font" error. > Notes > 1. When use the Noto Sans CJK JP and Kozuka Gothic Pr6N M fonts, there is no > problem. > 2. But NfMotoya Cedar Std W1 (Free Font, Regisration needed) and Morisawa > A-OTF Shin Go Pro R are failed. > 3. Read embedded stream by CFFParser, test_NotoSansCJKjp.pdf is ok, > test_KozukaMinchoPr6NR.pdf is failed at reading CharStringIndex. > java.io.EOFException > at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151) > at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55) > at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172) > at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193) > at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:456) > at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141) > CFFParser#parseFont() > // charstrings index > DictData.Entry charStringsEntry = topDict.getEntry("CharStrings"); > int charStringsOffset = charStringsEntry.getNumber(0).intValue(); // THIS > VALUE IS NEGATIVE!! > input.setPosition(charStringsOffset); > byte[][] charStringsIndex = readIndexData(input); -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (FOP-2697) Acrobat Reader error with Adobe Kozuka Mincho font
[ https://issues.apache.org/jira/browse/FOP-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901298#comment-15901298 ] simon steiner commented on FOP-2697: http://svn.apache.org/viewvc?view=revision&revision=1785969 > Acrobat Reader error with Adobe Kozuka Mincho font > -- > > Key: FOP-2697 > URL: https://issues.apache.org/jira/browse/FOP-2697 > Project: FOP > Issue Type: Bug > Components: font/opentype >Affects Versions: trunk > Environment: Operating Systems: Windows > JDK: 1.8 > OpenFont: Adobe Kozuka Mincho >Reporter: Kazuyuki Murakami >Assignee: simon steiner > Attachments: fop.xconf, test.fo, test_KozukaMinchoPr6NR.pdf, > test_NotoSansCJKjp.pdf > > > The Kozuka Mincho Pr6N R font cannot be embedded into PDF document. > How to repeat > 1. Get FOP from trunk@1784735 > 2. Install Adobe Acrobat Reader DC Japanese language version. > 3. Get Font from C:\Program Files (x86)\Adobe\Acrobat > DC\Resource\CIDFont\KozMinPr6N-Regular.otf > 4. Use my config file and generate the PDF, there is no error reported. > 5. Open the PDF file in Acro-Reader, it will report the "cannot extract the > embedded font" error. > Notes > 1. When use the Noto Sans CJK JP and Kozuka Gothic Pr6N M fonts, there is no > problem. > 2. But NfMotoya Cedar Std W1 (Free Font, Regisration needed) and Morisawa > A-OTF Shin Go Pro R are failed. > 3. Read embedded stream by CFFParser, test_NotoSansCJKjp.pdf is ok, > test_KozukaMinchoPr6NR.pdf is failed at reading CharStringIndex. > java.io.EOFException > at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151) > at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55) > at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172) > at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193) > at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:456) > at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141) > CFFParser#parseFont() > // charstrings index > DictData.Entry charStringsEntry = topDict.getEntry("CharStrings"); > int charStringsOffset = charStringsEntry.getNumber(0).intValue(); // THIS > VALUE IS NEGATIVE!! > input.setPosition(charStringsOffset); > byte[][] charStringsIndex = readIndexData(input); -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Resolved] (FOP-2697) Acrobat Reader error with Adobe Kozuka Mincho font
[ https://issues.apache.org/jira/browse/FOP-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner resolved FOP-2697. Resolution: Fixed > Acrobat Reader error with Adobe Kozuka Mincho font > -- > > Key: FOP-2697 > URL: https://issues.apache.org/jira/browse/FOP-2697 > Project: FOP > Issue Type: Bug > Components: font/opentype >Affects Versions: trunk > Environment: Operating Systems: Windows > JDK: 1.8 > OpenFont: Adobe Kozuka Mincho >Reporter: Kazuyuki Murakami >Assignee: simon steiner > Attachments: fop.xconf, test.fo, test_KozukaMinchoPr6NR.pdf, > test_NotoSansCJKjp.pdf > > > The Kozuka Mincho Pr6N R font cannot be embedded into PDF document. > How to repeat > 1. Get FOP from trunk@1784735 > 2. Install Adobe Acrobat Reader DC Japanese language version. > 3. Get Font from C:\Program Files (x86)\Adobe\Acrobat > DC\Resource\CIDFont\KozMinPr6N-Regular.otf > 4. Use my config file and generate the PDF, there is no error reported. > 5. Open the PDF file in Acro-Reader, it will report the "cannot extract the > embedded font" error. > Notes > 1. When use the Noto Sans CJK JP and Kozuka Gothic Pr6N M fonts, there is no > problem. > 2. But NfMotoya Cedar Std W1 (Free Font, Regisration needed) and Morisawa > A-OTF Shin Go Pro R are failed. > 3. Read embedded stream by CFFParser, test_NotoSansCJKjp.pdf is ok, > test_KozukaMinchoPr6NR.pdf is failed at reading CharStringIndex. > java.io.EOFException > at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151) > at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55) > at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172) > at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193) > at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:456) > at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141) > CFFParser#parseFont() > // charstrings index > DictData.Entry charStringsEntry = topDict.getEntry("CharStrings"); > int charStringsOffset = charStringsEntry.getNumber(0).intValue(); // THIS > VALUE IS NEGATIVE!! > input.setPosition(charStringsOffset); > byte[][] charStringsIndex = readIndexData(input); -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Assigned] (FOP-2697) Acrobat Reader error with Adobe Kozuka Mincho font
[ https://issues.apache.org/jira/browse/FOP-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon steiner reassigned FOP-2697: -- Assignee: simon steiner > Acrobat Reader error with Adobe Kozuka Mincho font > -- > > Key: FOP-2697 > URL: https://issues.apache.org/jira/browse/FOP-2697 > Project: FOP > Issue Type: Bug > Components: font/opentype >Affects Versions: trunk > Environment: Operating Systems: Windows > JDK: 1.8 > OpenFont: Adobe Kozuka Mincho >Reporter: Kazuyuki Murakami >Assignee: simon steiner > Attachments: fop.xconf, test.fo, test_KozukaMinchoPr6NR.pdf, > test_NotoSansCJKjp.pdf > > > The Kozuka Mincho Pr6N R font cannot be embedded into PDF document. > How to repeat > 1. Get FOP from trunk@1784735 > 2. Install Adobe Acrobat Reader DC Japanese language version. > 3. Get Font from C:\Program Files (x86)\Adobe\Acrobat > DC\Resource\CIDFont\KozMinPr6N-Regular.otf > 4. Use my config file and generate the PDF, there is no error reported. > 5. Open the PDF file in Acro-Reader, it will report the "cannot extract the > embedded font" error. > Notes > 1. When use the Noto Sans CJK JP and Kozuka Gothic Pr6N M fonts, there is no > problem. > 2. But NfMotoya Cedar Std W1 (Free Font, Regisration needed) and Morisawa > A-OTF Shin Go Pro R are failed. > 3. Read embedded stream by CFFParser, test_NotoSansCJKjp.pdf is ok, > test_KozukaMinchoPr6NR.pdf is failed at reading CharStringIndex. > java.io.EOFException > at org.apache.fontbox.cff.DataInput.readUnsignedShort(DataInput.java:151) > at org.apache.fontbox.cff.CFFDataInput.readCard16(CFFDataInput.java:55) > at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:172) > at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:193) > at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:456) > at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141) > CFFParser#parseFont() > // charstrings index > DictData.Entry charStringsEntry = topDict.getEntry("CharStrings"); > int charStringsOffset = charStringsEntry.getNumber(0).intValue(); // THIS > VALUE IS NEGATIVE!! > input.setPosition(charStringsOffset); > byte[][] charStringsIndex = readIndexData(input); -- This message was sent by Atlassian JIRA (v6.3.15#6346)