You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Eric Leleu (JIRA)" <ji...@apache.org> on 2010/03/24 14:30:27 UTC
[jira] Created: (PDFBOX-668) TrueType Font - Feature for
CMAPEncodingEntry
TrueType Font - Feature for CMAPEncodingEntry
---------------------------------------------
Key: PDFBOX-668
URL: https://issues.apache.org/jira/browse/PDFBOX-668
Project: PDFBox
Issue Type: Improvement
Components: FontBox
Affects Versions: 1.0.0
Reporter: Eric Leleu
Priority: Trivial
Attachments: CMAPEncodingEntry.patch
Hi,
I'm currently using FontBox 1.0.0.
I encountered a problem with the CMapEncodingEntry.
When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
In this case, it is impossible to obtain the GlyphId using the character code.
To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).
In attachement, you can find the patch for this feature.
Regards,
Eric
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-668) TrueType Font - Feature for
CMAPEncodingEntry
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-668.
---------------------------------------
Fix Version/s: 1.2.0
Resolution: Fixed
I've applied the patch with version 942539.
Thanks to Eric for his contribution.
> TrueType Font - Feature for CMAPEncodingEntry
> ---------------------------------------------
>
> Key: PDFBOX-668
> URL: https://issues.apache.org/jira/browse/PDFBOX-668
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Eric Leleu
> Priority: Trivial
> Fix For: 1.2.0
>
> Attachments: CMAPEncodingEntry.patch, SampleCMapEntry.java, TrueTypePDF.ttf
>
>
> Hi,
> I'm currently using FontBox 1.0.0.
> I encountered a problem with the CMapEncodingEntry.
> When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
> In this case, it is impossible to obtain the GlyphId using the character code.
> To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).
> In attachement, you can find the patch for this feature.
> Regards,
> Eric
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-668) TrueType Font - Feature for
CMAPEncodingEntry
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849365#action_12849365 ]
Andreas Lehmkühler commented on PDFBOX-668:
-------------------------------------------
Can you provide us with a sample to demonstrate your improvement?
> TrueType Font - Feature for CMAPEncodingEntry
> ---------------------------------------------
>
> Key: PDFBOX-668
> URL: https://issues.apache.org/jira/browse/PDFBOX-668
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Eric Leleu
> Priority: Trivial
> Attachments: CMAPEncodingEntry.patch
>
>
> Hi,
> I'm currently using FontBox 1.0.0.
> I encountered a problem with the CMapEncodingEntry.
> When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
> In this case, it is impossible to obtain the GlyphId using the character code.
> To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).
> In attachement, you can find the patch for this feature.
> Regards,
> Eric
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-668) TrueType Font - Feature for
CMAPEncodingEntry
Posted by "Eric Leleu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Leleu updated PDFBOX-668:
------------------------------
Attachment: TrueTypePDF.ttf
SampleCMapEntry.java
Hi,
In attachment, you can find a TrueType Font program extract from a PDF file.
The SampleCMapEntry.java show that the GlyphId 3 matches with the Character code 32 and 160.
Here is the content of StartCount, EndCount, Delta and RangeOffset arrays :
Start : [ 32 ; 39 ; 84 ; 98 ; 100 ; 108 ; 114 ; 119 ; 160 ; 65535 ]
End : [ 32 ; 39 ; 84 ; 98 ; 105 ; 112 ; 117 ; 121 ; 160 ; 65535 ]
Delta : [ 65507 ; 65507 ; 65507 ; 65507 ; 65507 ; 65507 ; 65507 ; 65507 ; 65379 ; 1 ]
RangeOffset : [ 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ]
Regards,
Eric
> TrueType Font - Feature for CMAPEncodingEntry
> ---------------------------------------------
>
> Key: PDFBOX-668
> URL: https://issues.apache.org/jira/browse/PDFBOX-668
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Eric Leleu
> Priority: Trivial
> Attachments: CMAPEncodingEntry.patch, SampleCMapEntry.java, TrueTypePDF.ttf
>
>
> Hi,
> I'm currently using FontBox 1.0.0.
> I encountered a problem with the CMapEncodingEntry.
> When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
> In this case, it is impossible to obtain the GlyphId using the character code.
> To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).
> In attachement, you can find the patch for this feature.
> Regards,
> Eric
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-668) TrueType Font - Feature for
CMAPEncodingEntry
Posted by "Eric Leleu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Leleu updated PDFBOX-668:
------------------------------
Attachment: CMAPEncodingEntry.patch
> TrueType Font - Feature for CMAPEncodingEntry
> ---------------------------------------------
>
> Key: PDFBOX-668
> URL: https://issues.apache.org/jira/browse/PDFBOX-668
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.0.0
> Reporter: Eric Leleu
> Priority: Trivial
> Attachments: CMAPEncodingEntry.patch
>
>
> Hi,
> I'm currently using FontBox 1.0.0.
> I encountered a problem with the CMapEncodingEntry.
> When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
> In this case, it is impossible to obtain the GlyphId using the character code.
> To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).
> In attachement, you can find the patch for this feature.
> Regards,
> Eric
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.