Hi Thomas,

On 29 Aug 2007 at 6:21, [EMAIL PROTECTED] wrote:
> 
> "Matthew Darlison" <[EMAIL PROTECTED]> wrote on 08/29/2007 05:56:36 AM:
> 
> > On 28 Aug 2007 at 21:22, [EMAIL PROTECTED] wrote:
...
> > > > I'm getting great output quality, but large files because the default
> > > > export renders the entire outlines of the text to paths, rather than
> > > > the text itself. 
> > > 
> > >    There are a number of ways that this can happen.  How are you 
> drawing the text?  (what method is being used on the Graphics2D?).
> > 
> > An example would be:
> > ... 
> 
> > LineBreakMeasurer slbm = new LineBreakMeasurer(saci, sfrc);
> > float swrappingWidth = (this.getXDimension()/4)-offsetunit;
> > float sx = offsetunit;
> > float sy = rowcentre1 -offsetunit;
> > while (slbm.getPosition() < saci.getEndIndex()) {
> >   TextLayout stextLayout = slbm.nextLayout(swrappingWidth);
> >   sy += stextLayout.getAscent();
> >   stextLayout.draw(g2, sx, sy);
> >   sy += stextLayout.getDescent() + stextLayout.getLeading();
> >   sx = offsetunit;
> > }
> 
>    I'm guessing that the LineBreakMeasurer is setting a
> bunch of attributes on the attribute string that it passes
> to the Graphics2D to draw.  The list of attributes that we 
> check for an fallback to outlines for is:
> 
>         unsupportedAttributes.add(TextAttribute.BACKGROUND);
>         unsupportedAttributes.add(TextAttribute.BIDI_EMBEDDING);
>         unsupportedAttributes.add(TextAttribute.CHAR_REPLACEMENT);
>         unsupportedAttributes.add(TextAttribute.JUSTIFICATION);
>         unsupportedAttributes.add(TextAttribute.RUN_DIRECTION);
>         unsupportedAttributes.add(TextAttribute.SUPERSCRIPT);
>         unsupportedAttributes.add(TextAttribute.SWAP_COLORS);
>         unsupportedAttributes.add(TextAttribute.TRANSFORM);
>         unsupportedAttributes.add(TextAttribute.WIDTH);
> 
>    Of these I would suspect that BIDI_EMBEDDING, and
> perhaps JUSTIFICATION/RUN_DIRECTION/WIDTH are tripping 
> you up.  I would suggest commenting them out of your local
> copy of SVGGraphics2D and see if it fixes it.  The list
> is at the end of batik.svggen.SVGGraphics2D.

I've just tried with all of the commented out, and I'm seeing no 
change... could the font itself make a difference...? 

Yours,

Matthew


-- 
"Mr. Matthew Darlison BA MA" <[EMAIL PROTECTED]>
Senior Research Fellow, Clinical & Applied Bioinformatics
UCL Centre for Health Informatics and Multiprofessional Education (CHIME)
WHO Collaborating Centre for the Community Control of Inherited Disorders
APoGI on the Web at http://www.chime.ucl.ac.uk/APoGI/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to