You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by xu xiaoyu <pe...@gmail.com> on 2013/07/21 17:04:22 UTC
Error svg glyph for Chinese simsun font
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