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 Cameron McCormack <ca...@mcc.id.au> on 2008/03/06 03:59:07 UTC

Re: disable text anti-aliasing

Hi Massimo.

massimo citterio:
> how can I disable antialiasing in text?
> I think I should use the  font-rendering attribute, but It doesn't work
> 
> It seems to be supported:
> http://xmlgraphics.apache.org/batik/status.html
> 
> I tried with all of:
> optimizeSpeed | optimizeLegibility | geometricPrecision
> 
> in the example:
> 	<text
>    font-rendering="geometricPrecision"
>    id="textHistory"
>    transform="matrix(1 0 0 1 39.9497 19.9729)"
>    fill="#FFFFFF"
>    font-family="'Modena-CondensedMedium'"
>    font-size="11.34">Some text here</text>

You’re on the right track, but the attribute is text-rendering="",
not font-rendering="".  ‘optimizeSpeed’ is the value you want.

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

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


Re: disable text anti-aliasing

Posted by massimo citterio <ci...@sinapto.net>.
On Thu, 2008-03-06 at 10:22 +0100, massimo citterio wrote:
> 
> > You’re on the right track, but the attribute is text-rendering="",
> > not font-rendering="".  ‘optimizeSpeed’ is the value you want.
> 
> 
> Thanks, in the meanwhile I found out that attribute too.
> The problem now is that "optimizeSpeed" seems to change also the
> painting of the neighbour areas.

I think the right value is optimizeLegibility...
it seems to do the trick
bye



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


Re: disable text anti-aliasing

Posted by massimo citterio <ci...@sinapto.net>.
On Thu, 2008-03-06 at 13:59 +1100, Cameron McCormack wrote:
> Hi Massimo.
> 
> massimo citterio:
> > how can I disable antialiasing in text?
> ...
> You’re on the right track, but the attribute is text-rendering="",
> not font-rendering="".  ‘optimizeSpeed’ is the value you want.


Thanks, in the meanwhile I found out that attribute too.
The problem now is that "optimizeSpeed" seems to change also the
painting of the neighbour areas.
On the right side of the text element, there are long white stripes on,
such as spot of dirt areas.

sample:
http://img352.imageshack.us/img352/83/screenshottf8.png



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