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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to