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 华文行楷?
至少你的机器上要安装他吧?
凡是不存在或不认识的字体,都会用宋体代替。不然显示一个个方框就“美妙”了

DependencyinjectioninPHPisadesignpatternthatenhancesflexibility,testability,andmaintainabilitybyprovidingexternaldependenciestoclasses.Itallowsforloosecoupling,easiertestingthroughmocking,andmodulardesign,butrequirescarefulstructuringtoavoidover-inje

PHP performance optimization can be achieved through the following steps: 1) use require_once or include_once on the top of the script to reduce the number of file loads; 2) use preprocessing statements and batch processing to reduce the number of database queries; 3) configure OPcache for opcode cache; 4) enable and configure PHP-FPM optimization process management; 5) use CDN to distribute static resources; 6) use Xdebug or Blackfire for code performance analysis; 7) select efficient data structures such as arrays; 8) write modular code for optimization execution.

OpcodecachingsignificantlyimprovesPHPperformancebycachingcompiledcode,reducingserverloadandresponsetimes.1)ItstorescompiledPHPcodeinmemory,bypassingparsingandcompiling.2)UseOPcachebysettingparametersinphp.ini,likememoryconsumptionandscriptlimits.3)Ad

Dependency injection provides object dependencies through external injection in PHP, improving the maintainability and flexibility of the code. Its implementation methods include: 1. Constructor injection, 2. Set value injection, 3. Interface injection. Using dependency injection can decouple, improve testability and flexibility, but attention should be paid to the possibility of increasing complexity and performance overhead.

Implementing dependency injection (DI) in PHP can be done by manual injection or using DI containers. 1) Manual injection passes dependencies through constructors, such as the UserService class injecting Logger. 2) Use DI containers to automatically manage dependencies, such as the Container class to manage Logger and UserService. Implementing DI can improve code flexibility and testability, but you need to pay attention to traps such as overinjection and service locator anti-mode.

Thedifferencebetweenunset()andsession_destroy()isthatunset()clearsspecificsessionvariableswhilekeepingthesessionactive,whereassession_destroy()terminatestheentiresession.1)Useunset()toremovespecificsessionvariableswithoutaffectingthesession'soveralls

Stickysessionsensureuserrequestsareroutedtothesameserverforsessiondataconsistency.1)SessionIdentificationassignsuserstoserversusingcookiesorURLmodifications.2)ConsistentRoutingdirectssubsequentrequeststothesameserver.3)LoadBalancingdistributesnewuser

PHPoffersvarioussessionsavehandlers:1)Files:Default,simplebutmaybottleneckonhigh-trafficsites.2)Memcached:High-performance,idealforspeed-criticalapplications.3)Redis:SimilartoMemcached,withaddedpersistence.4)Databases:Offerscontrol,usefulforintegrati


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

Zend Studio 13.0.1
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
