discourse/app/views/common/_special_font_face.html.erb
Jeff Atwood fff03fb7c3 woff and woff2 are all we need for webfonts
on any browser that is remotely modern
2016-04-11 01:37:17 -07:00

21 lines
640 B
Plaintext

<%#
The fonts are loaded outside of the stylesheet so that we can dynamically change the path.
This is to get around CDN caching on the Origin:
https://forums.aws.amazon.com/thread.jspa?threadID=114646
Also added a cache breaker there in case we have breaking config changes
&1 was added last when the nginx sample config changed
%>
<% font_domain = "#{request.protocol}#{request.host_with_port}&2" %>
<style>
@font-face {
font-family: 'FontAwesome';
src: url('<%=asset_path "fontawesome-webfont.woff2" %>?<%= font_domain %>&v=4.5.0') format('woff2'),
font-weight: normal;
font-style: normal;
}
</style>