On Monday 05 November 2001 15:09, Mark Claassen wrote:
> I have been kind of playing around with things and I tried this simple file
> in Batik.  I realize that Batik's font rendering capabilities go beyond
> what normal font rendering can handle, but this is a simple file.  I was
> testing in 1.4beta3.  Is there something I can do to optimize things?
>
> Mark
>
> ---------------
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
> "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd";>
>
>
> <?xml-stylesheet type="text/css" href="test.css" ?>
> <svg id="body" width="500" height="500" viewBox="0 0 550 550">
> <title>SVG Print Test</title>
>
>       <g id="content">
>
>               <text x="5%" y="20" font = "Arial" font-size = "20">
>                       This is a sample print line
>               </text>
>
>
>     </g>
>
> </svg>

Well, not really at this time. You can use the style attribute for the two 
properties (font-family and font-size). The attribute 
style="font-family:Arial; font-size:20" is equivalent to the 2 attributes you 
set (font and font-size).

This is a really small optimization.
No other idea of optimization. text is complex in SVG and our text layout 
engine handles all cases (whether or not the text is 'simple'). 

We have no solution yet to detect real simple text (where all glyphs are 
available in a particular font, no attribute is changing, no tspan...) - to 
try to provide better performance.

Thierry.


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

Reply via email to