{"id":2250,"date":"2017-10-30T14:16:06","date_gmt":"2017-10-30T06:16:06","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2250"},"modified":"2017-10-30T14:16:06","modified_gmt":"2017-10-30T06:16:06","slug":"cufon-yui-js-%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2250","title":{"rendered":"cufon-yui.js \u5b9e\u6218"},"content":{"rendered":"<p>\n\t\u7b80\u5355\u7684\u8bf4\uff0cCufon\u662f\u4e00\u4e2a\u7528\u6765\u66ff\u4ee3sIFR\uff08\u66f4\u65e9\u671f\u7684\u4e00\u79cd\u81ea\u5b9a\u4e49\u5b57\u4f53\u5b9e\u73b0\u65b9\u6848\uff09\u6846\u67b6\uff0c\u5b9e\u73b0\u5728\u7f51\u9875\u4e2d\u5bf9\u6587\u5b57\u5b57\u4f53\u8fdb\u884c\u6e32\u67d3\u529f\u80fd\u7684\u7eafJavaScript\u5f00\u6e90\u7c7b\u5e93\u3002\u5176\u57fa\u672c\u539f\u7406\u662f\u501f\u52a9\u4e8e\u6d4f\u89c8\u5668\u6240\u63a8\u51fa\u7684\u4e13\u6709\u9875\u9762\u7ed8\u753b\u65b9\u6848\uff0c\u5982 VML\u3001Canvas \u548c SVG \u7b49\uff0c\u5728\u7f51\u9875\u76f8\u5173\u4f4d\u7f6e\u4e0a&ldquo;\u753b&rdquo;\u51fa\u4e86\u6240\u9700\u8981\u663e\u793a\u7684\u6587\u5b57\u5b57\u7b26\uff0c\u5e76\u540c\u65f6\u66ff\u6362\u539f\u5148\u533a\u57df\u6240\u9700\u8981\u663e\u793a\u7684\u6587\u5b57\u3002\u5982\u679c\u8bfb\u8005\u6240\u4f7f\u7528\u7684\u6d4f\u89c8\u5668\u6070\u597d\u662fFirefox\u7684\u8bdd\uff0c\u53f3\u952e\u5355\u51fb\u7ecfCufon \u6e32\u67d3\u7684\u6587\u5b57\uff0c\u5c31\u53ef\u4ee5\u53d1\u73b0\u8fd9\u4e9b\u6587\u5b57\u53ef\u4ee5\u6309\u7167\u56fe\u7247\u6a21\u5f0f\u8fdb\u884c\u67e5\u770b\u548c\u5b58\u50a8\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"cufon-yui.js\" src=\"http:\/\/www.codedq.net\/ueditor\/jsp\/upload\/image\/20171030\/1509343335654026905.png\" \/>\n<\/p>\n<h2>\n\tCufon \u6559\u7a0b<br \/>\n<\/h2>\n<p>\n\t\u6b65\u9aa4\u4e00\uff1a\u5f15\u5165Cufon\u6838\u5fc3\u5e93\u3002\n<\/p>\n<p>\n\t\u4f5c\u4e3a\u4e00\u79cd\u57fa\u4e8e JavaScript \u7684\u7f51\u9875\u5b57\u4f53\u5f15\u5165\u65b9\u6848\uff0c Cufon \u7684\u6838\u5fc3\u529f\u80fd\u662f\u901a\u8fc7\u4e00\u4e2a\u540d\u4e3a&ldquo;cufon-yui.js&rdquo;\u7684 JavaScript \u7c7b\u5e93\uff0c\u63d0\u4f9b\u7ed9\u5f00\u53d1\u4eba\u5458\u7684\u3002\u56e0\u6b64\u4f7f\u7528 Cufon \u6280\u672f\u7684\u7b2c\u4e00\u6b65\uff0c\u5f53\u7136\u5c31\u662f\u5728 Web \u9875\u9762\u4e2d\u5f15\u5165\u8fd9\u4e00\u7c7b\u5e93\u3002\u9996\u5148\u5230<a href=\"http:\/\/cufon.shoqolate.com\/generate\/\" target=\"_blank\">Cufon\u7f51\u7ad9<\/a>\u4e0b\u8f7d\u7c7b\u5e93\u6587\u4ef6\uff08\u6700\u65b0\u7248\u672c\u662f1.09i\uff09\u3002\n<\/p>\n<p>\n\t\u4ee3\u7801\u4e2d\u5f15\u5165Cufon\u5e93\uff0c\u5982\u4e0b\u6240\u793a\uff1a\n<\/p>\n<pre>\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;js\/cufon-yui.js&quot;&gt;&lt;\/script&gt;<\/pre>\n<p>\n\t\u6b65\u9aa4\u4e8c\uff1a\u521b\u5efa\u548c\u5f15\u5165\u5b57\u4f53\u6587\u4ef6\n<\/p>\n<p>\n\t\u8fd9\u91cc\u8bf4\u7684\u5b57\u4f53\u6587\u4ef6\u662fCufon\u5b57\u4f53\u6587\u4ef6\uff0c\u8fd9\u662f\u4f7f\u7528 Cufon \u6280\u672f\u7684\u53e6\u4e00\u4e2a\u5173\u952e\u6240\u5728\u3002\u4ec0\u4e48\u662f Cufon \u5b57\u4f53\u6587\u4ef6\u5462\uff1f\u7b80\u8a00\u4e4b Cufon \u5b57\u4f53\u6587\u4ef6\uff0c\u5c31\u662f\u6309\u7167 Cufon \u6240\u63d0\u51fa\u7684\u5b57\u4f53\u63cf\u8ff0\u6807\u51c6\uff0c\u521b\u5efa\u5f62\u6210\u7684\u4e00\u79cd\u5b57\u4f53\u6587\u4ef6\u3002\u800c\u548c\u5176\u4ed6\u5b57\u4f53\u521b\u5efa\u6807\u51c6\u5982 TrueType\u3001OpenType \u7b49\u4e0d\u540c\u7684\u662f\uff0c\u6309\u7167 Cufon \u6807\u51c6\u6240\u5f62\u6210\u7684\u8fd9\u4e00\u6587\u4ef6\u672c\u8eab\uff0c\u5c31\u662f\u4e00\u4e2a\u6807\u51c6\u7684 JavaScript \u811a\u672c\u6587\u4ef6\uff0c\u5e76\u4ea4\u7531 Cufon \u7c7b\u5e93\u8fdb\u884c\u89e3\u6790\u548c\u5904\u7406\u3002\n<\/p>\n<p>\n\tCufon\u4e3a\u5f00\u53d1\u4eba\u5458\u51c6\u5907\u4e86\u76f8\u5e94\u7684<a href=\"http:\/\/cufon.shoqolate.com\/generate\/\" target=\"_blank\">\u5728\u7ebf\u5de5\u5177<\/a>\uff0c\u6765\u5b9e\u73b0\u8fd9\u4e00\u8f6c\u6362\u8fc7\u7a0b\u3002\u800c\u76ee\u524d\u5de5\u5177\u6240\u53ef\u4ee5\u8f6c\u6362\u7684\u5b57\u4f53\u6807\u51c6\u5219\u5305\u62ec\u4e86 TrueType\u3001FreeType2\u3001OpenType\u3001PostScript Font \u7b49\u591a\u79cd\uff0c\u5e94\u8be5\u8bf4\u8fd9\u51e0\u4e4e\u56ca\u62ec\u4e86\u5f53\u524d\u4e3b\u6d41\u7684\u4e00\u4e9b\u5b57\u4f53\u521b\u5efa\u6807\u51c6\u3002\u5de5\u5177\u7684\u4f7f\u7528\u5176\u5b9e\u5e76\u4e0d\u590d\u6742\uff0c\u7b14\u8005\u5c31\u4e0d\u8d58\u8ff0\u4e86\u3002\n<\/p>\n<p>\n\t\u4ee5Denne Shuffle\u5b57\u4f53\u4e3a\u4f8b\uff0c\u5728\u4f7f\u7528\u8fd9\u4e00\u5de5\u5177\u4ea7\u751f\u4e86\u76f8\u5e94\u7684 Cufon \u6807\u51c6\u7684\u5b57\u4f53\u6587\u4ef6&ldquo;Denne_Shuffle_400.font.js&rdquo;\u540e\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u4ee3\u7801\u6240\u793a\u7684\u5f62\u5f0f\u5c06\u5176\u5f15\u5165\u5230\u9875\u9762\u4e2d\uff1a\n<\/p>\n<pre>\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;js\/Denne_Shuffle_400.font.js&quot;&gt;&lt;\/script&gt;<\/pre>\n<p>\n\t\u6b65\u9aa4\u4e09\uff1a\u5e94\u7528Cufon\u6e32\u67d3\n<\/p>\n<p>\n\t\u5728\u5b8c\u6210\u4e86\u4e0a\u8ff0\u7684\u4e24\u9879\u51c6\u5907\u5de5\u4f5c\u540e\uff0c\u4f7f\u7528 Cufon \u7c7b\u5e93\u6765\u5b9e\u73b0\u5bf9\u5b57\u4f53\u7684\u6e32\u67d3\u662f\u975e\u5e38\u7b80\u5355\u7684\uff0c\u8fd9\u4ec5\u4ec5\u7275\u6d89\u5230\u4e86 Cufon \u7c7b\u5e93\u6240\u63d0\u4f9b\u7684\u4e00\u4e2a\u6838\u5fc3\u65b9\u6cd5\uff0c\u5373 Cufon.replace \u65b9\u6cd5\uff0c\u5982\u4e0b\u4ee3\u7801\u6240\u793a\uff1a\n<\/p>\n<pre>\r\n&lt;h1&gt;www.xttblog.com&lt;\/h1&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n    Cufon.replace(&quot;h1&quot;);\r\n    Cufon.set(&quot;fontSize&quot;,&quot;66px&quot;);\r\n    Cufon.set(&quot;color&quot;,&quot;red&quot;);\r\n&lt;\/script&gt;<\/pre>\n<p>\n\t\u800c\u4e0e\u6b64\u540c\u65f6\uff0c\u4e3a\u4e86\u53ef\u4ee5\u66f4\u4e3a\u7cbe\u786e\u7684\u63a7\u5236\u5728\u8fdb\u884c\u5b57\u4f53\u6e32\u67d3\u65f6\u6240\u4f7f\u7528\u7684\u5b57\u4f53\u98ce\u683c\uff0cCufon \u8fd8\u63d0\u4f9b\u4e86&ldquo;\u914d\u7f6e\u9879\uff08Option\uff09&rdquo;\u8fd9\u4e00\u6982\u5ff5\uff0c\u6765\u5e2e\u52a9\u5f00\u53d1\u8005\u76f4\u63a5\u5728 Cufon \u65b9\u6cd5\u4e2d\u6307\u5b9a\u76f8\u5e94\u5b57\u4f53\u98ce\u683c\u503c\uff0c\u4e0a\u8ff0\u4ee3\u7801\u540e\u9762\u4e24\u9879\u914d\u7f6e\u4e86\u5b57\u4f53\u5927\u5c0f\u4e3a66\u50cf\u7d20\uff0c\u989c\u8272\u662f\u7ea2\u8272\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2250\">cufon-yui.js \u5b9e\u6218<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u7b80\u5355\u7684\u8bf4\uff0cCufon\u662f\u4e00\u4e2a\u7528\u6765\u66ff\u4ee3sIFR\uff08\u66f4\u65e9\u671f\u7684\u4e00\u79cd\u81ea\u5b9a\u4e49\u5b57\u4f53\u5b9e\u73b0\u65b9\u6848\uff09\u6846\u67b6\uff0c\u5b9e\u73b0\u5728\u7f51\u9875\u4e2d\u5bf9\u6587\u5b57\u5b57\u4f53\u8fdb\u884c\u6e32 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[31,814,1558,1106,52],"class_list":["post-2250","post","type-post","status-publish","format-standard","hentry","category-html5","tag-canvas","tag-css3","tag-cufon-yui-js","tag-javascript","tag-svg"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2250"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2250\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2250\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}