Error svg glyph for Chinese simsun font

xu xiaoyu <[email protected]> Sun, 21 Jul 2013 23:04:22 +0800
Newsgroups gmane.text.xml.batik.user
Message-ID <CANxxBpvFgqxp4GO=8zn7E_Z5_1eMBXbEvaChCoUYASSaqdhRQA@mail.gmail.com>
Dear all,

I found that the svg glyph of punctuations of Chinese font simsun00.ttf and
simsun01.ttf (which are derived from simsun.ttc in windows 7) generated
by batik-ttf2svg.jar were distorted.

Here is my investigations on this issue:
1. punctuations of other Chinese fonts do not have such distortions.
2. original .ttf files do not have such distortions.

So I think there may be a bug in the font converter.

Here is the testsvg.svg I am using.

<?xml version="1.0" standalone="yes"?>
<svg version="1.1"
 xmlns = 'http://www.w3.org/2000/svg'  width="2000" height="1500" >
  <defs>
    <style type="text/css">
      <![CDATA[
    @font-face {
          font-family: Simsun0;
          src: url("simsun00.ttf") format("truetype");
        }
      @font-face {
          font-family: Simsunsvg;
          src: url("simsun00.svg#simsun00") format("svg");
        }
.simsun0{font-family: Simsun0; font-size: 120pt;}
.simsunsvg{font-family: Simsunsvg; font-size: 120pt;}
      ]]>
   </style>
  </defs>
  <text class="simsun0"  x="50" y="200">1:中文标点,。</text>
  <text class="simsunsvg"  x="50" y="350">2:中文标点,。</text>
  <text class="simsun0"  x="50" y="500">3:?【】、!:</text>
  <text class="simsunsvg"  x="50" y="650">4:?【】、!:</text>
  <text class="simsun0"  x="50" y="800">5:《》();</text>
  <text class="simsunsvg"  x="50" y="950">6:《》();</text>
  <text class="simsun0"  x="50" y="1100">7:“”‘’</text>
  <text class="simsunsvg"  x="50" y="1250">8:“”‘’</text>
</svg>

Attacked please find the pdf file of the svg file displayed by chrome.

Hoping you can respond to this issue soon.

Best regards,
Priscilla


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
testsvg.pdf (application/pdf, 56 KB) - not displayed