xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Chew" <chew.a...@gmail.com>
Subject Re: how can i display text in g that use clip-path
Date Fri, 07 Apr 2006 01:07:15 GMT
Hi, Thomas
Thanks for your immediately respose.

I knew little about clip path though the trouble has ran away. :)

It looks like a joke to me,
When I reboot my pc justnow, I found all Chiese words were turned to
something like 'Ŀ¼'.
What I did is to turn them back. Then, it worked well.

I didn't know what was the really cause.
The file was generated using batik.
I'll try more tests.

thanks again.
alex

following is whole file,

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
          'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<svg contentScriptType="text/ecmascript" xmlns:xlink="
http://www.w3.org/1999/xlink" zoomAndPan="magnify"
contentStyleType="text/css" preserveAspectRatio="xMidYMid meet" xmlns="
http://www.w3.org/2000/svg" version="1.0">
<defs>
  <clipPath id="slideClip"  clip-rule="evenodd">
    <path d="M 143.0 13.0 L 623.0 13.0 L 623.0 86.0 L 143.0 86.0"/>
  </clipPath>
</defs>
 <g clip-path="url(#slideClip)">
  <g id="slide">
    <rect width="64.0" x="140.03.0" height="64.0" y="13.0"
style="fill:#FF9143;opacity: 0.6"/>
    <rect width="64.0" x="210.03.0" height="64.0" y="13.0"
style="fill:#FF9143;opacity:0.6"/>
    <text x="144.03.0" y="48.0"
style="stroke:black;font-family:'KaiTi_GB2312'">中文</text>
    <text x="214.03.0" y="48.0"
style="stroke:black;font-family:'KaiTi_GB2312'">English</text>
  </g>
</g>
</svg>
Mime
View raw message