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 Bill Haneman <Bi...@ireland.sun.com> on 2000/11/08 14:24:19 UTC

[commit] textpainter and TextElementBridge changes

Hi:

The log message for a recent commit is attached below.

Thierry, for now I am using the old TextLayout propagation
criteris, adding FOREGROUND to the list of attributes on
which we must delimit TextLayouts.  I think eventually we will
use your method, just not yet ;-)

-Bill

------------- Begin Included Message -------------

Design reviewed by: VH, TK
 ----------------------------------------------------------------------
 
 Changes to GVTAttributedCharacterIterator and StrokingTextPainter
        New TextAttributes for UNDERLINE, OVERLINE and STRIKETHROUGH
        for enhanced rendering support. Note that previous 
        TextAttributes for these text-decorations should no longer 
        be used.
 Changes to SVGTextElementBridge to support these new attributes, and
        a one-line bug fix for a whitespace regression.
 Changes to StrokingTextPainter also for new text rendering  
        implementation;
        instead of calling TextLayout.draw() we are manually 
        filling.  This requires that multiple TextLayouts be created  
        when text fill paint changes, underline changes, etc.
        This fixes a layout fractional metrics bug and also 
        is a cosmetic improvement for stroked text (strokes correspond
        better with fills).

 Modified Files:
        
sources/org/apache/batik/gvt/text/GVTAttributedCharacterIterator.java
        
sources/org/apache/batik/refimpl/bridge/SVGTextElementBridge.java
        
sources/org/apache/batik/refimpl/gvt/renderer/StrokingTextPainter.java
 ----------------------------------------------------------------------
~
------------- End Included Message -------------

------
Bill Haneman +353 1 8199279
Ireland Desktop Engineering
Sun Microsystems Ireland Ltd.