You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/03/08 02:11:28 UTC

DO NOT REPLY [Bug 41789] New: - Text containing surrogate pairs painted as paths is wrong

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41789

           Summary: Text containing surrogate pairs painted as paths is
                    wrong
           Product: Batik
           Version: 1.7
          Platform: Other
               URL: http://arc.mcc.id.au/temp/2007/surrogate.svg
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: GVT Text
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: cam@apache.org


If text contains characters from outside the Basic Multilingual Plane, and the
text is rendered as paths (with text-rendering='geometricPrecision', or having
some rotation on the text), then the rendered glyphs are wrong.  In the example
at the URL given, the same text string is used twice.  The upper text element is
rendered by the Java2D classes and is done correctly.  The lower text element is
painted as shapes since it has text-rendering='geometricPrecision', but just
repeats the first glyph over the whole string (although the combining diereses
are rendered).

At least in AWTGVTGlyphVector.java:113, the call to glyphVector.getNumGlyphs()
returns a number that makes it look like java.awt.font.GlyphVector assumes each
of the two surrogates in a pair are separate glyphs.

I suspect there are a few places in the code that doesn't handle surrogate pairs
properly.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 41789] - Text containing surrogate pairs painted as paths is wrong

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41789





------- Additional Comments From cam@apache.org  2007-03-07 18:26 -------
Oh and for the example, you may need the Code2001 font
(http://home.att.net/~jameskass/code2001.htm) for it to render.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 41789] - Text containing surrogate pairs painted as paths is wrong

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41789





------- Additional Comments From cam@apache.org  2007-03-07 18:25 -------
According to http://java.sun.com/developer/technicalArticles/Intl/Supplementary/
many of the JRE's classes that deal with characters have been updated in Java
1.5 to support surrogates.  Once 1.7 is shipped, we may want to consider making
Java 1.5 the baseline for support.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org