Hi all

I read the thread on "Batik 1.7 text rendering issues" and followed the instructions to get batik to render the text in my SVG files using sub-pixel aliasing however I cannot get it to work.
http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200808.mbox/<[EMAIL
 PROTECTED]>

I modified the method convertTextRendering in
org.apache.batik.bridge.CSSUtilities.java to include

       case 'c': // geometricPrecision
         System.err.println("geometricPrecision");
         hints.put(RenderingHints.KEY_RENDERING,
                   RenderingHints.VALUE_RENDER_QUALITY);
         hints.put(RenderingHints.KEY_TEXT_ANTIALIASING,
                   RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);

I configured squiggle to use a stylesheet containing

text
{
        text-rendering: geometricPrecision;
}

and asked it to display xml-batik/samples/textRotate.svg. Squiggle
prints geometricPrecision many times.

Squiggle draws the text "Text Transformation" in textRotate.svg using
grey level anti-aliasing not the (multi-coloured) sub-pixel antialiasing
that I want. Squiggle's menu buttons are however correctly drawn using
sub-pixel antialiasing. I checked using xmag.

How do I make squiggle (and my application) draw text using subpixel
antialiasing?

I'm using batik from svn and the Java(TM) SE Runtime Environment (build
1.6.0_04-b12 on Debian Linux.

thanks for your help
Stuart

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

Reply via email to