{"id":540,"date":"2010-07-28T10:38:40","date_gmt":"2010-07-28T03:38:40","guid":{"rendered":"http:\/\/blog.iwayvietnam.com\/tuanta\/?p=540"},"modified":"2010-07-28T10:38:40","modified_gmt":"2010-07-28T03:38:40","slug":"how-to-install-ttf-fonts-on-fedora","status":"publish","type":"post","link":"https:\/\/blog.iwayvietnam.com\/tuanta\/2010\/07\/how-to-install-ttf-fonts-on-fedora\/","title":{"rendered":"How to install TTF Fonts on Fedora"},"content":{"rendered":"<ol>\n<li>This HOWTO assume that you have TTF fonts collection in a directory\u00a0<code>\/home\/extras\/fonts\/TTF<\/code>.\u00a0Change the script below, if you use a different location.<\/li>\n<li>Login as &#8216;root&#8217; (or equiv thru su or sudo).<\/li>\n<li>Copy the script below and save to file\u00a0<code>\/home\/extras\/fonts\/TTF\/install.sh<\/code>:<br \/>\n<code>#!\/bin\/tcsh<br \/>\necho ------------------------------------------------------------<br \/>\necho Installing true type fonts<br \/>\necho ------------------------------------------------------------<br \/>\npushd \/usr\/share\/fonts<br \/>\necho Creating directory \/usr\/share\/fonts\/TTF ...<br \/>\nmkdir TTF<br \/>\necho Copying true type fonts<br \/>\ncd TTF<br \/>\ncp \/home\/extras\/fonts\/TTF\/*.ttf .<br \/>\numask<br \/>\necho Creating fonts.scale file ...<br \/>\nttmkfdir<br \/>\necho Creating index of scalable font files<br \/>\nmkfontdir<br \/>\necho Adding \/usr\/share\/fonts\/TTF to font server path ...<br \/>\nchkfontpath -a \/usr\/share\/fonts\/TTF<br \/>\necho Building font information cache files ...<br \/>\nfc-cache<br \/>\npopd<br \/>\necho Done!!!<\/code><\/li>\n<li>Ensure that script is executable<br \/>\n<code># cd \/home\/extras\/fonts\/TTF<br \/>\n# chmod 744 install.sh<br \/>\n<\/code><\/li>\n<li>Execute the script<br \/>\n<code># .\/install.sh<br \/>\n<\/code><\/li>\n<li>You should be able to use the TTF fonts now.<\/li>\n<\/ol>\n<p>This script can be run each time new fonts are added to your collection.<\/p>\n<p style=\"text-align: right\"><em>Source: FedoraForum.org<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This HOWTO assume that you have TTF fonts collection in a directory\u00a0\/home\/extras\/fonts\/TTF.\u00a0Change the script below, if you use a different location. Login as &#8216;root&#8217; (or equiv thru su or sudo). Copy the script below and save to file\u00a0\/home\/extras\/fonts\/TTF\/install.sh: #!\/bin\/tcsh echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; echo Installing true type fonts echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; pushd \/usr\/share\/fonts echo Creating directory \/usr\/share\/fonts\/TTF &#8230;<a class=\"more-link\" href=\"https:\/\/blog.iwayvietnam.com\/tuanta\/2010\/07\/how-to-install-ttf-fonts-on-fedora\/\">Continue reading <span class=\"screen-reader-text\">&#8220;How to install TTF Fonts on Fedora&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,34],"tags":[],"class_list":["post-540","post","type-post","status-publish","format-standard","hentry","category-linux","category-weekly-tips","entry"],"_links":{"self":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/540"}],"collection":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":1,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":541,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/540\/revisions\/541"}],"wp:attachment":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}