{"id":40,"date":"2010-01-13T10:46:00","date_gmt":"2010-01-13T10:46:00","guid":{"rendered":"https:\/\/www.srivittal.com\/wp\/?p=40"},"modified":"2021-08-31T10:13:06","modified_gmt":"2021-08-31T09:13:06","slug":"adding-new-fonts-on-a-centos-system","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=40","title":{"rendered":"Adding new fonts on a CentOS system"},"content":{"rendered":"<p>Going through the CentOS documentation talked about two different services for rendering fonts in X, namely fontconfig and xfs. I performed the following steps to get the new fonts working.<\/p>\n<ol>\n<li>Create a new directory under \/usr\/share\/fonts called <b>imported<\/b> so you will end up with something like \/usr\/share\/fonts\/imported<\/li>\n<li>Copy all your newly installable font files to the directory created in step 1.<\/li>\n<li>Open a terminal window and login as root.<\/li>\n<li>Issue the following command to get fontconfig to look at the new fonts.<\/li>\n<li>fc-cache \/usr\/share\/fonts\/imported<\/li>\n<li>To make xfs recognize the new fonts a few more steps are required. Each font directory must contain a fonts.dir file.<\/li>\n<li>To create a fonts.dir file, issue the following commands from within the \/usr\/share\/fonts\/imported directory.<\/li>\n<li>ttmkfdir -o fonts.scale<\/li>\n<li>mkfontdir<\/li>\n<li>chkfontpath &#8211;add \/usr\/share\/fonts\/imported\/<\/li>\n<li>service xfs reload<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Going through the CentOS documentation talked about two different services for rendering fonts in X, namely fontconfig and xfs. I performed the following steps to get the new fonts working. Create a new directory under \/usr\/share\/fonts called imported so you will end up with something like \/usr\/share\/fonts\/imported Copy all your newly installable font files to &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}