以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  有没有人用过imagemagic?小弟有个问题。  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=16152)


--  作者:ipis
--  发布时间:3/28/2005 2:54:00 PM

--  有没有人用过imagemagic?小弟有个问题。
前几天用了一下,imagemagic

发现是个很有用的工具,但是结果是不支持中文显示的,我查看了一下,发现里边有个文件 type_widows.xml .里边列举了很多字体信息。我就依样画葫芦。
<?xml version="1.0"?>
<typemap>
  <type
    name="Arial"
    fullname="Arial"
    family="Arial"
    weight="400"
    style="normal"
    stretch="normal"
    glyphs="arial.ttf"
    />
   <type
    name="Wingdings-2"
    fullname="Wingdings 2"
    family="Wingdings 2"
    weight="400"
    style="normal"
    stretch="normal"
    glyphs="wingdng2.ttf"
    encoding="AppleRoman"
    />
  <type
    name="Wingdings-3"
    fullname="Wingdings 3"
    family="Wingdings 3"
    weight="400"
    style="normal"
    stretch="normal"
    glyphs="wingdng3.ttf"
    encoding="AppleRoman"
    />
   <type                                     //这个就是我写的。
    name="黑体"
    fullname="SIMHEI"
    family="SIMHEI"
    weight="400"
    style="normal"
    stretch="normal"
    glyphs="simsun.ttc"
    encoding="utf-8"
    />
</typemap>

但是结果还是不能写出中文。
问过官方网站,说是要先encode utf-8。 然后才用。我上边的做法不就是已经加密好了?还是我要加在最开始?

有没有人会的,棒下忙。谢谢了。


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
18,617.190ms