Displaying Text with blur Filters : text « SVG « XML

Home
XML
1.CSS Style
2.SVG
3.XML Schema
4.XQuery
5.XSLT stylesheet
XML » SVG » text 
Displaying Text with blur Filters

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" 
 "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">

<svg width="100%" height="100%">
  <defs>
    <filter id="blurFilter1" filterUnits="objectBoundingBox" x="0"
      y="0" width="100%" height="100%">
      <feGaussianBlur stdDeviation="4" />
    </filter>
  </defs>

  <g transform="translate(50,100)">

    <text id="normalText" x="0" y="0" fill="red" stroke="black"
      stroke-width="4" font-size="72">
      Normal Text
    </text>

    <text id="horizontalText" x="0" y="100"
      filter="url(#blurFilter1)" fill="red" stroke="black" stroke-width="4"
      font-size="72">
      Blurred Text
    </text>
  </g>
</svg>

 
Related examples in the same category
1.Rendering a Text String
2.Rendering a Text String with Colored Borders
3.Using Text Decoration with Text Strings
4.Using the SVG tspan Element with Text Strings
5.Rendering Shadowed Text
6.Rotating a Text String Counterclockwise
7.Displaying Text with Linear Gradients
8.Displaying Text with Opacity
9.Text Following a Specified Path
10.Vertical text
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.