当前位置: 代码迷 >> PHP >> php生成svg 后用flash展示,字体丢失
  详细解决方案

php生成svg 后用flash展示,字体丢失

热度:206   发布时间:2012-09-07 10:38:15.0
php生成svg 后用flash显示,字体丢失?
我用php 生成
如:
XML code
<?xml version='1.0' encoding='utf-8'?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' >
    <svg  version='1.1' id='swhj_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
    <font horiz-adv-x='1000'>
    <font-face font-family='STXingkai' units-per-em='1000' underline-position='-133' underline-thickness='20'/>
<missing-glyph horiz-adv-x='1000'/>
<glyph unicode="&#x5929;" horiz-adv-x="1000" d="M506,284C532,271 561,253 593,228C625,203 647,184 660,170C672,156 691,140 717,122C743,103 764,91 781,85C880,50 939,23 958,3C977,-18 986,-32 986,-39C986,-46 977,-52 958,-57C939,-62 913,-64 879,-64C845,-64 816,-59 792,-49C767,-40 741,-22 713,4C684,30 655,64 624,106C593,148 567,175 546,188C525,201 496,211 461,219C453,182 448,144 447,103C446,62 424,30 381,7C338,-17 297,-29 258,-29C241,-29 225,-26 211,-21C196,-16 189,-12 189,-9C189,-6 197,-4 212,-3C227,-2 245,4 267,15C288,26 308,40 327,59C346,78 359,96 368,115C376,133 384,165 393,211C374,203 354,199 335,199C315,199 296,202 278,209C260,215 251,232 251,259C251,270 253,279 258,287C263,294 267,298 270,298C273,298 274,296 274,292l-1,-7C273,283 275,282 278,282C293,282 340,303 419,345C425,366 428,386 428,405C414,394 403,388 396,388C388,388 384,390 384,395C384,400 388,407 396,418C403,429 416,444 434,465C432,472 431,478 431,483C431,487 433,489 436,489C439,489 445,487 452,484C459,492 464,498 467,501C448,504 426,518 403,541C380,564 368,583 368,596C368,601 370,605 373,606C376,607 384,608 395,608C420,608 451,617 487,634C523,651 542,665 543,674C544,680 551,683 566,683C591,683 616,676 641,662C666,648 678,632 678,613C678,597 669,587 652,582C646,580 623,564 583,535C543,505 509,477 480,452C496,431 506,411 509,391C548,407 580,423 607,438C613,441 622,443 635,443C647,443 663,437 684,424C704,411 714,399 714,390C714,381 704,373 683,366C618,346 559,319 506,284z"/>
</font>
<text transform='matrix(0.5888 0 0 1 0 30)' font-family='STXingkai' font-size='30'>天</text>
</svg>

Flex引这个svg 这个字体丢失了!!!在所有浏览器都是宋体了!~
本来在谷歌和opera还可以正常显示的,想让flash来解决兼容的问题!
请问怎么办呀!~

------解决方案--------------------
STXingkai 华文行楷?
至少你的机器上要安装他吧?

凡是不存在或不认识的字体,都会用宋体代替。不然显示一个个方框就“美妙”了
  相关解决方案