You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/05/03 13:08:59 UTC

DO NOT REPLY [Bug 51144] New: ToUnicode table for subset font contains invalid entries

https://issues.apache.org/bugzilla/show_bug.cgi?id=51144

             Bug #: 51144
           Summary: ToUnicode table for subset font contains invalid
                    entries
           Product: Fop
           Version: 1.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: r.grosmann@gmail.com
    Classification: Unclassified


In the ToUnicode table that maps character codes from a subset font to unicode
characters, the first three entries map to unicode <ffff>. The first one is the
.notdef glyph, so this is OK, but the following two might be incorrect.

This is the beginning of such a table:

21 beginbfchar
<0000> <ffff>
<0001> <ffff>
<0002> <ffff>
<0003> <002d>
<0004> <0031>

I posted a question on the fop-users mailing list on 2 may 2011.  Mehdi
Houshmand replied on 3 may 2011:


Yes this is a bug, which has been fixed in my patch, but since I
didn't think anyone else had bumped into it I didn't want to put it
into trunk since I also made some code improvements to the class and
was weary that it could cause merge issues when/if the branches are
merged.

The issue is that in most fonts the first 3 glyphs are set to .notdef,
and this was implemented in FOP. However, the spec says only the first
glyph is reserved for .notdef, and what happens in MOST fonts doesn't
happen in ALL fonts.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51144] [PATCH] ToUnicode table for subset font contains invalid entries

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51144

Mehdi Houshmand <me...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51144] ToUnicode table for subset font contains invalid entries

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51144

--- Comment #1 from Mehdi Houshmand <me...@gmail.com> 2011-05-03 12:35:04 UTC ---
Created attachment 26954
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=26954
Removed 2 reserved glyphs from the CIDSubset

This patch seeks to address the fact that the first 3 glyphs are being
reserved, where as only the first glyph should be reserved for .notdef.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51144] [PATCH] ToUnicode table for subset font contains invalid entries

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51144

Jeremias Maerki <je...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|ToUnicode table for subset  |[PATCH] ToUnicode table for
                   |font contains invalid       |subset font contains
                   |entries                     |invalid entries

--- Comment #2 from Jeremias Maerki <je...@apache.org> 2011-05-05 15:52:40 UTC ---
Patch applied: http://svn.apache.org/viewvc?rev=1099852&view=rev
Thanks, Mehdi. It's always funny when a bug surfaces that was essentially there
since the beginning. For years, we've produced PDFs with three fixed entries at
the beginning of a CID subset. I haven't found out why that was done so.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.