{"id":4694,"date":"2017-09-22T19:55:05","date_gmt":"2017-09-22T11:55:05","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4694"},"modified":"2017-09-25T09:09:09","modified_gmt":"2017-09-25T01:09:09","slug":"%e3%80%90%e6%95%99%e7%a8%8b%e3%80%91qdac-%e6%96%b0%e5%a2%9e-qdac_fmx_fontex_android-%e4%bb%a5%e4%be%bf%e5%9c%a8-android-%e4%b8%ad%e4%bd%bf%e7%94%a8%e8%87%aa%e5%ae%9a%e4%b9%89%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4694","title":{"rendered":"\u3010\u6559\u7a0b\u3011\u5728\u4f60\u7684\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53"},"content":{"rendered":"<h4>\u3010Android\u3011<\/h4>\n<p>\u65b9\u6cd5\u4e00\uff1a\u53c2\u8003\u00a0<a href=\"https:\/\/blog.qdac.cc\/?p=1861\">[\u8bd1]\u5728 Andriod\/IOS \u7a0b\u5e8f\u4e2d\u4f7f\u7528\u81ea\u5df1\u7684\u5b57\u4f53<\/a>\u00a0\u81ea\u5df1\u4fee\u6539\u7cfb\u7edf\u6e90\u7801\uff0c\u7f3a\u70b9\u662f\u6bcf\u5347\u7ea7\u4e00\u4e2a\u7248\u672c\u9700\u8981\u4fee\u6539\u4e00\u6b21\uff1b<\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528 QDAC \u4e3a\u6b64\u65b0\u589e qdac_fmx_fontex_android \uff0c\u4e0d\u8fc7\u533a\u5206\u514d\u8d39\u7248\u548c\u8d5e\u52a9\u7248\uff08\u8d5e\u52a9\u7248\u4e3aqdac_appfonts\uff0c\u540c\u65f6\u652f\u6301\u6240\u6709\u5e73\u53f0\uff09\uff0c\u4f46\u4f7f\u7528\u6b65\u9aa4\u4e00\u6837\uff1a<\/p>\n<p style=\"padding-left: 30px;\">\u7b2c\u4e00\u6b65\uff1a\u5728\u4f60\u7684\u7a0b\u5e8f\u4e2d\u5f15\u7528 qdac_fmx_fontex_android \u5355\u5143\uff1b<\/p>\n<p style=\"padding-left: 30px;\">\u7b2c\u4e8c\u6b65\uff1a\u5728\u53d1\u5e03\uff08Deployment\uff09\u7a97\u53e3\u4e2d\uff0c\u6dfb\u52a0\u5b57\u4f53\u6587\u4ef6\u3002\u8bbe\u7f6e\u5b83\u7684\u8fdc\u7a0b\u76ee\u5f55\uff08Remote Path\uff09\u4e3a .\\assets\\internal\\\uff0c\u5982\u679c\u662f\u514d\u8d39\u7248\uff0c\u6ce8\u610f\u5b57\u4f53\u6587\u4ef6\u7684\u8fdc\u7a0b\u540d\u79f0\u7684\u6269\u5c55\u540d\u5fc5\u9700\u4e3a\u5c0f\u5199\uff0c\u5426\u5219\u627e\u4e0d\u5230\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2015\/01\/TTF_Dep.png\" \/><\/p>\n<p style=\"padding-left: 30px;\">\u7b2c\u4e09\u6b65\uff1a\u8bbe\u7f6e\u4f60\u63a7\u4ef6\u7684Font.Family \u4e3a\u5bf9\u5e94\u7684\u5b57\u4f53\u6587\u4ef6\u540d\uff08\u4e0d\u5305\u542b\u6269\u5c55\u540d\uff09\u6216\u5b57\u4f53\u540d\u79f0\uff08\u4ec5\u8d5e\u52a9\u7248\uff09<\/p>\n<p style=\"padding-left: 30px;\">\u7f16\u8bd1\u5e76\u53d1\u5e03\u4f60\u7684\u7a0b\u5e8f\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u4f7f\u7528\u5b57\u4f53\u7684\u6548\u679c\u3002\u6ce8\u610f\u4e0d\u540c\u7684\u5b57\u4f53\u5e76\u4e0d\u80fd\u6db5\u76d6\u6240\u6709\u7684\u5b57\u7b26\uff0c\u6240\u4ee5\u975e\u8303\u56f4\u5185\u7684\u5b57\u7b26\u4f1a\u4ee5\u9ed8\u8ba4\u5b57\u4f53\u663e\u793a\u3002\u4f7f\u7528 FontAwesome \u5b57\u4f53\u7684\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/FontAwesome.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4695\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/FontAwesome.jpg\" alt=\"\" width=\"540\" height=\"960\" \/><\/a><\/p>\n<h4>\u3010iOS \u5e73\u53f0\u3011<\/h4>\n<p>\u4fee\u6539 info.plist.TemplateiOS.xml \u6587\u4ef6\uff0c\u589e\u52a0 UIAppFonts \u76f8\u5173\u5185\u5bb9\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt;\r\n&lt;plist version=\"1.0\"&gt;\r\n&lt;dict&gt;\r\n&lt;%VersionInfoPListKeys%&gt;\r\n&lt;%ExtraInfoPListKeys%&gt;\r\n&lt;key&gt;UIAppFonts&lt;\/key&gt;\r\n &lt;array&gt;\r\n &lt;string&gt;fontawesome-webfont.ttf&lt;\/string&gt;\r\n &lt;string&gt;STHUPO.TTF&lt;\/string&gt;\r\n &lt;\/array&gt;\r\n&lt;\/dict&gt;\r\n&lt;\/plist&gt;<\/pre>\n<p>\u6ce8\u610f\uff1aiOS \u5e73\u53f0\u7684\u5b57\u4f53\u540d\u79f0\u8bf7\u4f7f\u7528\u5b57\u4f53\u7684\u9ed8\u8ba4\u540d\u79f0\u3002<\/p>\n<p>\u8fd0\u884c\u6548\u679c\uff1a<a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4703\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont.png\" alt=\"\" width=\"1136\" height=\"640\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont.png 1136w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont-300x169.png 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont-768x433.png 768w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/ios_customfont-1024x577.png 1024w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/a><\/p>\n<h4>\u3010OSX \u5e73\u53f0\u3011<\/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<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/osx_customfont.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4704\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/osx_customfont.png\" alt=\"\" width=\"643\" height=\"501\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/osx_customfont.png 643w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/osx_customfont-300x234.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/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 \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\u53ef\u80fd\u9700\u8981\u8c03\u7528 Screen.ResetFonts \u4ee5\u4fbf\u91cd\u65b0\u679a\u4e3e\u6240\u6709\u5b57\u4f53\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f60 AddFontResourceEx \u7684\u65f6\u673a\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>\u8d5e\u52a9\u7248\u63d0\u4f9b\u5c01\u88c5\u597d\u7684\u4ee3\u7801\uff0c\u540d\u4e3aqdac_appfonts\uff0c\u76f4\u63a5\u5f15\u7528\uff0c\u7136\u540e\u5c06\u5b57\u4f53\u62f7\u8d1d\u5230\u7a0b\u5e8f\u76ee\u5f55\u4e0b\u5c31\u53ef\u4ee5\u3002<\/p>\n<h4>\u3010Linux \u5e73\u53f0\u3011<\/h4>\n<p>\u597d\u5427\uff0c\u6211\u627f\u8ba4\u8fd9\u7eaf\u7cb9\u662f\u51d1\u6570\uff0c\u56e0\u4e3a\u5b98\u65b9\u5c1a\u4e0d\u652f\u6301 FMX\uff0c\u800c\u7b2c\u4e09\u65b9\u7684 FMXLinux \u6211\u6ca1\u6709\u6e90\u7801\uff0c\u6240\u4ee5\u4e5f\u6ca1\u6709\u6d4b\u8bd5\uff08\u6362\u53e5\u8bdd\u8bf4\u5c31\u662f\u5077\u61d2\uff09<\/p>\n<h4>\u3010\u7248\u672c\u533a\u522b\u3011<\/h4>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4710\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp.png\" alt=\"\" width=\"1054\" height=\"493\" srcset=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp.png 1054w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp-300x140.png 300w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp-768x359.png 768w, https:\/\/blog.qdac.cc\/wp-content\/uploads\/2017\/09\/appfonts_vercomp-1024x479.png 1024w\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" \/><\/a><\/p>\n<h4>\u3010\u8d5e\u52a9\u91d1\u989d\u3011<\/h4>\n<ul>\n<li>\u8d5e\u52a9\u7248\u672c\u91d1\u989d 10 \u5143\u8d77\u6b65\uff0c\u6ca1\u6709\u7279\u522b\u8981\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7 QQ\u3001\u5fae\u4fe1\u6216\u652f\u4ed8\u5b9d\u7b49\u652f\u4ed8<\/li>\n<li>\u652f\u4ed8\u65b9\u5f0f\uff1a<br \/>\n<strong>[\u652f\u4ed8\u5b9d]<\/strong><br \/>\nguansonghuan@sina.com \u59d3\u540d\uff1a\u7ba1\u8038\u5bf0\uff08\u8bf7\u6807\u660eQQ\u53f7\uff09<br \/>\n<strong>[QQ]<\/strong><br \/>\n\u76f4\u63a5\u7fa4\u652f\u4ed8\uff0c\u6216\u7ed9\u7fa4\u4e3b\u53d1\u7ea2\u5305<br \/>\n<strong>[\u5fae\u4fe1]<\/strong><br \/>\n\u53d1\u9001\u7ea2\u5305\u6216\u8f6c\u8d26\u81f3\uff1awangshengbo<br \/>\n<strong>[\u94f6\u884c\u5361]<\/strong><br \/>\n\u5149\u5927\u94f6\u884c\uff1a<br \/>\n\u6237\u540d\uff1a\u738b\u80dc\u6ce2<br \/>\n\u8d26\u53f7\uff1a6226\u00a06208\u00a00391\u00a05552<br \/>\n\u5f00\u6237\u884c\uff1a\u5149\u5927\u94f6\u884c\u957f\u6625\u4eba\u6c11\u5927\u8857\u652f\u884c<\/li>\n<li>\u652f\u4ed8\u540e\u8bf7\u52a0\u5165 AppFonts \u7fa4\u4e0b\u8f7d\u6700\u65b0\u7248\u7684\u6e90\u7801\u548c\u793a\u4f8b<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010Android\u3011 \u65b9\u6cd5\u4e00\uff1a\u53c2\u8003\u00a0[\u8bd1] [&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,8,9,603],"tags":[302,294],"class_list":["post-4694","post","type-post","status-publish","format-standard","hentry","category-android","category-delphi","category-qdac","category-603","tag-302","tag-294"],"views":14622,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4694","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=4694"}],"version-history":[{"count":9,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4694\/revisions"}],"predecessor-version":[{"id":4711,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4694\/revisions\/4711"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}