<?xml version="1.0"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="500" height="250"> <filter id="MyFilter" filterUnits="userSpaceOnUse"> <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/> <feOffset in="blur" dx="4" dy="4" result="offsetBlurredAlpha"/> <feSpecularLighting in="blur" surfaceScale="5" specularConstant="0.9" specularExponent="20" lightColor="white" result="specularOut"> <feDistantLight azimuth="135" elevation="30"/> </feSpecularLighting> <feComposite in="specularOut" in2="SourceAlpha" operator="in" result="specularOut"/> <feComposite in="SourceGraphic" in2="specularOut" operator="arithmetic " k1="0" k2="1" k3="1" k4="0" result="litPaint"/> <feMerge> <feMergeNode in="offsetBlurredAlpha"/> <feMergeNode in="litPaint"/> </feMerge> </filter> <text x="20" y="120" style="font-size:40pt; stroke: red; stroke-width: 5; fill: red; filter: url(#MyFilter);"> Hello World </text> </svg>