You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Villu Ruusmann (JIRA)" <ji...@apache.org> on 2010/02/13 18:46:28 UTC
[jira] Created: (PDFBOX-619) Reapplying parts of PDFBOX-542
Reapplying parts of PDFBOX-542
------------------------------
Key: PDFBOX-619
URL: https://issues.apache.org/jira/browse/PDFBOX-619
Project: PDFBox
Issue Type: Bug
Components: FontBox
Affects Versions: 1.0.1
Reporter: Villu Ruusmann
Attachments: FontBox.patch
The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-619) Reapplying parts of PDFBOX-542
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-619:
----------------------------------
Attachment: (was: FontBox.patch)
> Reapplying parts of PDFBOX-542
> ------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.1
> Reporter: Villu Ruusmann
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-619) Reapplying parts of PDFBOX-542
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-619:
----------------------------------
Attachment: FontBox.patch
> Reapplying parts of PDFBOX-542
> ------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.1
> Reporter: Villu Ruusmann
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-619) Adobe CFF/Type2 font encoding
enhancements
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-619:
----------------------------------
Fix Version/s: 1.1.0
> Adobe CFF/Type2 font encoding enhancements
> ------------------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Villu Ruusmann
> Fix For: 1.1.0
>
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-619) Adobe CFF/Type2 font encoding
enhancements
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-619.
---------------------------------------
Resolution: Fixed
I've applied the patch with version 921450.
Thanks for the contribution
> Adobe CFF/Type2 font encoding enhancements
> ------------------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Villu Ruusmann
> Fix For: 1.1.0
>
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-619) Adobe CFF/Type2 font encoding
enhancements
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-619:
----------------------------------
Summary: Adobe CFF/Type2 font encoding enhancements (was: Reapplying parts of PDFBOX-542)
> Adobe CFF/Type2 font encoding enhancements
> ------------------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.1
> Reporter: Villu Ruusmann
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-619) Reapplying parts of PDFBOX-542
Posted by "Villu Ruusmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Villu Ruusmann updated PDFBOX-619:
----------------------------------
Attachment: FontBox.patch
When testing with finer logging level (debug instead on info), it turned out that class org.apache.pdfbox.pdmodel.font.PDType1CFont was still complaining about not being able to handle some codes. Closer inspection revealed that all the problematic codes were encoded as supplements.
I have enhanced the patch file to extract mapping information also from supplements.
> Reapplying parts of PDFBOX-542
> ------------------------------
>
> Key: PDFBOX-619
> URL: https://issues.apache.org/jira/browse/PDFBOX-619
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.0.1
> Reporter: Villu Ruusmann
> Attachments: FontBox.patch
>
>
> The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).
> I've compiled a patch file that restores the code in the original state.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.