{"id":4095983,"date":"2013-09-04T18:06:02","date_gmt":"2013-09-04T18:06:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/access-to-fonts-in-css\/"},"modified":"2016-08-21T04:36:04","modified_gmt":"2016-08-21T04:36:04","slug":"access-to-fonts-in-css","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/access-to-fonts-in-css\/","title":{"rendered":"Access to fonts in CSS"},"content":{"rendered":"<p>Hi, <\/p>\n<p>How can I access the fonts I&#8217;ve uploaded using CSS?<\/p>\n<p>I&#8217;ve tried using the standard CSS&#8230;<\/p>\n<pre><code>{font-family: myFont;\nsrc: url(myFont.otf);\n}<\/code><\/pre>\n<p>&#8230;but the URL doesn&#8217;t seem to work. I located the font file in my web directory, but I can&#8217;t seem to point the url in the CSS to the font.<\/p>\n<p>I know you&#8217;ve created a wonderful template to insert the font into custom elements, but I&#8217;m wondering if this other way is possible. Thank you!<\/p>\n<p>&#8211; Steven<\/p>\n<p>https:\/\/wordpress.org\/plugins\/font-uploader\/<\/p>\n","protected":false},"template":"","class_list":["post-4095983","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4095983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4095983\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4095983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}