{"id":4692,"date":"2017-09-21T21:22:28","date_gmt":"2017-09-21T13:22:28","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4692"},"modified":"2017-09-23T11:12:34","modified_gmt":"2017-09-23T03:12:34","slug":"%e6%95%99%e7%a8%8b%e5%9c%a8%e4%bd%a0%e7%9a%84%e7%a8%8b%e5%ba%8f%e4%b8%ad%e4%bd%bf%e7%94%a8-fontawesome-%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4692","title":{"rendered":"[\u6559\u7a0b]\u5728\u4f60\u7684\u7a0b\u5e8f\u4e2d\u4f7f\u7528 FontAwesome \u5b57\u4f53"},"content":{"rendered":"<p>\u9996\u5148\u662f\u65e0\u8bba\u4ec0\u4e48\u5e73\u53f0\uff0c\u8981\u4f7f\u7528 FontAwesome \u5b57\u4f53\u9700\u8981\u4e24\u6b65\uff1a<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u6dfb\u52a0\u5b57\u4f53\uff0c\u8003\u8651\u5230\u5b57\u4f53\u5982\u679c\u662f\u4e13\u7528\u7684\u8bdd\uff0c\u5e94\u8be5\u662f\u5f53\u524d\u7a0b\u5e8f\u80fd\u591f\u52a0\u8f7d\u5b57\u4f53\u7684\u76ee\u5f55\uff08\u4e0b\u9762\u90fd\u5047\u8bbe\u8fd9\u4e00\u70b9\uff0c\u4f60\u5982\u679c\u88c5\u5230\u64cd\u4f5c\u7cfb\u7edf\u5b57\u4f53\u76ee\u5f55\u91cc\u7684\u8bdd\uff0c\u5c31\u76f4\u63a5\u4f7f\u7528\u5c31\u53ef\u4ee5\u4e86\uff09\uff1b<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u63a7\u4ef6\u7684\u5b57\u4f53\u4e3a FontAwesome\uff0c\u7136\u540e\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u548c\u6837\u5f0f\u4e3a\u5408\u9002\u7684\u5927\u5c0f\uff1b<\/p>\n<h4>\u3010Windows \u5e73\u53f0\u3011<\/h4>\n<p>\u9996\u5148\uff0c\u9700\u8981\u5728\u00a0uses \u5c0f\u8282\u4e2d\uff0c\u786e\u8ba4 windows \u6216 winapi.windows \u5f15\u7528\u5b58\u5728\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u8c03\u7528\u51fd\u6570 AddFontResourceEx(\u5b57\u4f53\u6587\u4ef6\u540d,FR_PRIVATE,0) \u5c06\u5b57\u4f53\u6dfb\u52a0\u5230\u7a0b\u5e8f\u7684\u53ef\u7528\u5b57\u4f53\u91cc\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5982\u679c\u662f VCL\uff0c\u4f60\u5e94\u8be5\u8c03\u7528 Screen.ResetFonts \u4ee5\u4fbf\u91cd\u65b0\u679a\u4e3e\u6240\u6709\u5b57\u4f53\uff0c\u8bbf\u95ee Screen.Fonts \u53ef\u4ee5\u5f97\u5230\u5305\u542b\u5b83\u7684\u7ed3\u679c\u3002\u5982\u679c\u662f FMX\uff0c\u90a3\u4e48\u56e0\u4e3a FMX \u6839\u672c\u5c31\u6ca1\u7684\u63d0\u4f9b\u5b57\u4f53\u5217\u8868\u670d\u52a1\uff0c\u6240\u4ee5\u5ffd\u7565\u5427\u3002<\/p>\n<p>\u540e\u9762\u7684\u4e8b\u4ef6\u5c31\u662f\u4f60\u8bbe\u7f6e\u5bf9\u5e94\u7684\u56fe\u6807\u4e86\u3002<\/p>\n<h4>\u3010Android\u5e73\u53f0\u3011<\/h4>\n<p>\u597d\u5427\uff0c\u8fd9\u4e2a\u9700\u8981\u81ea\u5df1\u52a8\u624b\uff0c\u4e30\u8863\u8db3\u98df\u4e00\u4e0b\uff0c\u8bf7\u53c2\u8003\u8fd9\u7bc7\u8bd1\u6587\uff1a<a href=\"https:\/\/blog.qdac.cc\/?p=1861\">\u5728 Andriod\/IOS \u7a0b\u5e8f\u4e2d\u4f7f\u7528\u81ea\u5df1\u7684\u5b57\u4f53<\/a>\uff0c\u53ea\u662f\u5b57\u4f53\u540d\u79f0\u66ff\u6362\u4e0b\u3002\u5f53\u7136\u66f4\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u4f7f\u7528 QDAC \u63d0\u4f9b\u7684 qdac_fmx_fontex_android\uff0c\u7136\u540e\u5c06\u5b57\u4f53\u6587\u4ef6\u6b63\u5e38\u53d1\u5e03\u5c31\u53ef\u4ee5\u3002\u8d5e\u52a9\u7248\u7684 qdac_fmx_fontex_android \u53ef\u4ee5\u4f7f\u7528\u5b57\u4f53\u771f\u6b63\u7684\u540d\u79f0\uff0c\u800c\u4e0d\u662f\u6587\u4ef6\u540d\u6765\u8bbe\u7f6e\u5b57\u4f53\u3002<\/p>\n<h4>\u3010iOS\u5e73\u53f0\u3011<\/h4>\n<p>\u540c\u6837\u53c2\u8003\u4e0a\u9762\u7684\u8bd1\u6587\uff0c\u6ce8\u610f\u5b57\u4f53\u540d\u79f0\u9700\u8981\u4f7f\u7528\u5b83\u5b57\u4f53\u7684\u9ed8\u8ba4\u540d\u79f0\uff0c\u800c\u4e0d\u662f\u50cf\u534e\u6587\u7425\u73c0\u4e00\u7c7b\u7684\u4e2d\u6587\u540d\u79f0\u3002<\/p>\n<h4>\u3010OSX]<\/h4>\n<p>\u5728 Project-&gt;Options-&gt;Version Info \u4e2d\u53f3\u952e\u9009\u62e9 Add \u6dfb\u52a0\u4e00\u9879\u540d\u4e3a ATSApplicationFontsPath \uff0c\u503c\u8bbe\u7f6e\u4e3a \u00a0.\/\uff0c\u7136\u540e\u5728\u53d1\u5e03\u9875\u5c06\u5b57\u4f53\u76f4\u63a5\u6dfb\u52a0\u8fdb\u53d1\u5e03\u5185\u5bb9\u91cc\uff0c\u76ee\u5f55\u4e0d\u9700\u8981\u53d8\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u662f\u65e0\u8bba\u4ec0\u4e48\u5e73\u53f0\uff0c\u8981\u4f7f\u7528 FontAw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[145,69,8,602,603],"tags":[599,28],"class_list":["post-4692","post","type-post","status-publish","format-standard","hentry","category-android","category-c-builder","category-delphi","category-ios","category-603","tag-osx","tag-windows"],"views":4204,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4692"}],"version-history":[{"count":3,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4692\/revisions"}],"predecessor-version":[{"id":4701,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4692\/revisions\/4701"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}