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 vh...@apache.org on 2001/04/28 00:53:02 UTC

cvs commit: xml-batik/samples/tests bboxOnText.svg

vhardy      01/04/27 15:53:01

  Added:       samples/tests bboxOnText.svg
  Log:
  Test showing problem on objectBoundingBox on text gradient.
  
  Revision  Changes    Path
  1.1                  xml-batik/samples/tests/bboxOnText.svg
  
  Index: bboxOnText.svg
  ===================================================================
  <?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">
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Test created after bug submitted by cjolif@ilog.fr showing a problem with -->
  <!-- radialGradient with objectBoundingBox on a text element.                  -->
  <!-- @author vhardy@apache.org                                                 -->
  <!-- @version $Id: bboxOnText.svg,v 1.1 2001/04/27 22:53:00 vhardy Exp $ -->
  <!-- ========================================================================= -->
  <?xml-stylesheet type="text/css" href="test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500">
  <title>ObjectBounding box on TextNode</title>
  
    <defs>
  
      <radialGradient id="gradient" gradientUnits="objectBoundingBox"
  cx="0.4953271150588989" cy="0.4933333396911621" fx="0.5" fy="0.5"
  r="0.6560132">
  
        <stop offset="0.0" style="stop-color:blue" />
  
        <stop offset="0.57697475" style="stop-color:blue" />
  
        <stop offset="1.0" style="stop-color:#ff0033" />
  
      </radialGradient>
  
    </defs>
  
      <text x="50%" y="100" text-anchor="middle" font-size="30" 
            font-family="Verdana" fill="url(#gradient)">
      ObjectBoudingBox
      </text>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
  
  </svg>
  
  

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