php生成svg 后用flash显示,字体丢失?
我用php 生成
如:
- XML code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><?xml version='1.0' encoding='utf-8'?> <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"></font-face> <missing-glyph horiz-adv-x="1000"></missing-glyph> <glyph unicode="天" 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"></glyph> </font> <text transform="matrix(0.5888 0 0 1 0 30)" font-family="STXingkai" font-size="30">天</text> </svg>
Flex引这个svg 这个字体丢失了!!!在所有浏览器都是宋体了!~
本来在谷歌和opera还可以正常显示的,想让flash来解决兼容的问题!
请问怎么办呀!~
------解决方案--------------------
STXingkai 华文行楷?
至少你的机器上要安装他吧?
凡是不存在或不认识的字体,都会用宋体代替。不然显示一个个方框就“美妙”了

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1
Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
